|
JBoss Log Manager 1.3.2.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
org.jboss.logmanager.ExtHandler
org.jboss.logmanager.handlers.WriterHandler
org.jboss.logmanager.handlers.OutputStreamHandler
org.jboss.logmanager.handlers.FileHandler
org.jboss.logmanager.handlers.SizeRotatingFileHandler
public class SizeRotatingFileHandler
Field Summary |
---|
Fields inherited from class org.jboss.logmanager.handlers.WriterHandler |
---|
outputLock |
Fields inherited from class org.jboss.logmanager.ExtHandler |
---|
handlers, handlersUpdater |
Constructor Summary | |
---|---|
SizeRotatingFileHandler()
Construct a new instance with no formatter and no output file. |
|
SizeRotatingFileHandler(File file)
Construct a new instance with the given output file. |
|
SizeRotatingFileHandler(File file,
boolean append)
Construct a new instance with the given output file and append setting. |
|
SizeRotatingFileHandler(File file,
boolean append,
long rotateSize,
int maxBackupIndex)
Construct a new instance with the given output file and append setting. |
|
SizeRotatingFileHandler(File file,
long rotateSize,
int maxBackupIndex)
Construct a new instance with the given output file. |
|
SizeRotatingFileHandler(long rotateSize,
int maxBackupIndex)
Construct a new instance with no formatter and no output file. |
|
SizeRotatingFileHandler(String fileName)
Construct a new instance with the given output file. |
|
SizeRotatingFileHandler(String fileName,
boolean append)
Construct a new instance with the given output file and append setting. |
Method Summary | |
---|---|
protected void |
preWrite(ExtLogRecord record)
Execute any pre-write policy, such as file rotation. |
void |
setFile(File file)
Set the output file. |
void |
setMaxBackupIndex(int maxBackupIndex)
Set the maximum backup index (the number of log files to keep around). |
void |
setOutputStream(OutputStream outputStream)
Set the output stream to write to. |
void |
setRotateSize(long rotateSize)
Set the rotation size, in bytes. |
Methods inherited from class org.jboss.logmanager.handlers.FileHandler |
---|
getFile, setAppend, setFileName |
Methods inherited from class org.jboss.logmanager.handlers.OutputStreamHandler |
---|
getEncoding, setEncoding, setWriter |
Methods inherited from class org.jboss.logmanager.handlers.WriterHandler |
---|
close, doPublish, flush, safeClose |
Methods inherited from class org.jboss.logmanager.ExtHandler |
---|
addHandler, checkAccess, checkAccess, clearHandlers, disableAccess, enableAccess, getHandlers, isAutoFlush, isEnabled, protect, publish, publish, removeHandler, setAutoFlush, setEnabled, setErrorManager, setFilter, setFormatter, setHandlers, setLevel, unprotect |
Methods inherited from class java.util.logging.Handler |
---|
getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SizeRotatingFileHandler()
public SizeRotatingFileHandler(File file) throws FileNotFoundException
file
- the file
FileNotFoundException
- if the file could not be found on openpublic SizeRotatingFileHandler(File file, boolean append) throws FileNotFoundException
file
- the fileappend
- true
to append, false
to overwrite
FileNotFoundException
- if the file could not be found on openpublic SizeRotatingFileHandler(String fileName) throws FileNotFoundException
fileName
- the file name
FileNotFoundException
- if the file could not be found on openpublic SizeRotatingFileHandler(String fileName, boolean append) throws FileNotFoundException
fileName
- the file nameappend
- true
to append, false
to overwrite
FileNotFoundException
- if the file could not be found on openpublic SizeRotatingFileHandler(long rotateSize, int maxBackupIndex)
public SizeRotatingFileHandler(File file, long rotateSize, int maxBackupIndex) throws FileNotFoundException
file
- the file
FileNotFoundException
- if the file could not be found on openpublic SizeRotatingFileHandler(File file, boolean append, long rotateSize, int maxBackupIndex) throws FileNotFoundException
file
- the fileappend
- true
to append, false
to overwrite
FileNotFoundException
- if the file could not be found on openMethod Detail |
---|
public void setOutputStream(OutputStream outputStream)
setOutputStream
in class OutputStreamHandler
outputStream
- the new output stream or null
for nonepublic void setFile(File file) throws FileNotFoundException
setFile
in class FileHandler
file
- the file
FileNotFoundException
- if an error occurs opening the filepublic void setRotateSize(long rotateSize)
rotateSize
- the number of bytes before the log is rotatedpublic void setMaxBackupIndex(int maxBackupIndex)
maxBackupIndex
- the maximum backup indexprotected void preWrite(ExtLogRecord record)
preWrite
in class WriterHandler
record
- the record about to be logged
|
JBoss Log Manager 1.3.2.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |