| java.lang.Object es.udc.mypersonalizer.kernel.log.PlainTextLog
PlainTextLog | public class PlainTextLog implements Log(Code) | | This class writes log messages and/or throwable stack traces on a file.
Please see constructors for possible configurations.
WARNING: If no backups are allowed there will be just one log file that
will be deleted each time that the maximum log size is reached. (This is
not true if the maximum log size is set to -1, then the log will grow for
ever).
version: $Revision: 1.1.1.1 $ $Date: 2004/03/25 12:08:38 $ since: 1.0 |
Constructor Summary | |
public | PlainTextLog(File file) Constructs an instance of this class. | public | PlainTextLog(File file, boolean consoleOutput) Constructs an instance of this class. | public | PlainTextLog(File file, long maxSizeBytes, boolean consoleOutput) Constructs an instance of this class. | public | PlainTextLog(File file, long maxSizeBytes, int maxBackupFiles, boolean consoleOutput) Constructs an instance of this class.
Parameters: file - the log file Parameters: maxSizeBytes - the maximum size in bytes. |
PlainTextLog | public PlainTextLog(File file) throws IOException(Code) | | Constructs an instance of this class. The remaining configuration
parameters are set to their default values.
Parameters: file - the log file throws: IOException - if an i/o exception occured |
PlainTextLog | public PlainTextLog(File file, boolean consoleOutput) throws IOException(Code) | | Constructs an instance of this class. The remaining configuration
parameters are set to their default values.
Parameters: file - the log file Parameters: consoleOutput - true if messages are also to bedisplayed on the console throws: IOException - if an i/o exception occured |
PlainTextLog | public PlainTextLog(File file, long maxSizeBytes, boolean consoleOutput) throws IOException(Code) | | Constructs an instance of this class. The remaining configuration
parameters are set to their default values.
Parameters: file - the log file Parameters: maxSizeBytes - the maximum size in bytes. -1 means unlimited. 0means log inactive Parameters: consoleOutput - true if messages are also to bedisplayed on the console throws: IOException - if an i/o exception occured |
PlainTextLog | public PlainTextLog(File file, long maxSizeBytes, int maxBackupFiles, boolean consoleOutput) throws IOException(Code) | | Constructs an instance of this class.
Parameters: file - the log file Parameters: maxSizeBytes - the maximum size in bytes. -1 means unlimited. 0means log inactive Parameters: maxBackupFiles - the maximum number of backup files. -1 meansunlimited. 0 means no backup files Parameters: consoleOutput - true if messages are also to bedisplayed on the console throws: IOException - if an i/o exception occured |
finalize | public void finalize()(Code) | | |
getConsoleOutput | public boolean getConsoleOutput()(Code) | | Gets if the messages are displayed on the console.
true if messages are displayed, false otherwise |
getFile | public File getFile()(Code) | | Gets the log file.
the log file |
getMaxBackupFiles | public int getMaxBackupFiles()(Code) | | Gets the maximum number of backup files.
the maximum size in bytes |
getMaxSizeBytes | public long getMaxSizeBytes()(Code) | | Gets the maximum log size.
the maximum size in bytes |
|
|