public class RollingFileAppender extends FileAppender
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsId
Revision control id
|
closed, log
Constructor and Description |
---|
RollingFileAppender(java.lang.String file)
Constructor
|
RollingFileAppender(java.lang.String file,
long maxFileSize)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getMaxFileSize()
Get the maximum number of backup files
|
int |
getMaxSizeRollBackups()
Get the max size of a backup file
|
void |
log(java.lang.String msg)
Log a message
|
void |
log(java.lang.Throwable t)
Log a stack trace
|
void |
setMaxSizeRollBackups(int maxSizeRollBackups)
Set the maximum number of backup files
|
close, getFile, open
public static final java.lang.String cvsId
public RollingFileAppender(java.lang.String file, long maxFileSize) throws java.io.IOException
file
- file to log tomaxFileSize
- maximum size of log file in bytesjava.io.IOException
public RollingFileAppender(java.lang.String file) throws java.io.IOException
file
- file to log tojava.io.IOException
public int getMaxSizeRollBackups()
public void setMaxSizeRollBackups(int maxSizeRollBackups)
maxSizeRollBackups
- number of filespublic long getMaxFileSize()
public void log(java.lang.String msg)
log
in interface Appender
log
in class FileAppender
msg
- message to logpublic void log(java.lang.Throwable t)
Appender
log
in interface Appender
log
in class FileAppender
t
- throwable objectCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.