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, openpublic 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.IOExceptionpublic RollingFileAppender(java.lang.String file)
throws java.io.IOException
file - file to log tojava.io.IOExceptionpublic int getMaxSizeRollBackups()
public void setMaxSizeRollBackups(int maxSizeRollBackups)
maxSizeRollBackups - number of filespublic long getMaxFileSize()
public void log(java.lang.String msg)
log in interface Appenderlog in class FileAppendermsg - message to logpublic void log(java.lang.Throwable t)
Appenderlog in interface Appenderlog in class FileAppendert - throwable objectCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.