| java.lang.Object com.finalist.util.log.LogConfig
LogConfig | public class LogConfig (Code) | | Value object with log settings
author: Ronald Kramp - Finalist IT Group version: $Revision: 1.1 $, $Date: 2004/11/12 14:06:44 $ |
Constructor Summary | |
public | LogConfig(String logFile, boolean append, int maxBackupIndex, int maxFileSize, int showNumberOfLastPackages, String datePattern, String messageSeparator, String logLevel) |
LogConfig | public LogConfig(String logFile, boolean append, int maxBackupIndex, int maxFileSize, int showNumberOfLastPackages, String datePattern, String messageSeparator, String logLevel)(Code) | | Constrcutor for making a LogConfig
All settings for a appender
Parameters: logFile - the name of the logfile, default finalist%g.log Parameters: append - default true Parameters: maxBackupIndex - the number of files to create, must be greater than 0, default 1 Parameters: maxFileSize - the size of a log file in megabytes, must be greater than 0, default 50 Parameters: showNumberOfLastPackages - the number of pacakges of a class to show, cannot be negative, default 0 Parameters: datePattern - the date to log, default yyyy-MM-dd HH:mm:ss,SSS Parameters: messageSeparator - default - Parameters: logLevel - default INFO |
getDatePattern | public String getDatePattern()(Code) | | Get the datePattern
String, the datePattern |
getLogFile | public String getLogFile()(Code) | | Get the name of the logfile
String, the name of the log file |
getLogLevel | public String getLogLevel()(Code) | | Get the logLevel
String, the logLevel |
getMaxBackupIndex | public int getMaxBackupIndex()(Code) | | Get the maxBackupIndex
int, the maxBackupIndex |
getMaxFileSize | public int getMaxFileSize()(Code) | | Get the maxFileSize
int, maxFileSize |
getMessageSeparator | public String getMessageSeparator()(Code) | | Get the messageSeparator
String, the messageSeparator |
getShowNumberOfLastPackages | public int getShowNumberOfLastPackages()(Code) | | Get the showNumberOfLastPackages
int, the showNumberOfLastPackages |
isAppendable | public boolean isAppendable()(Code) | | Check to see if the logfile is appendable
boolean, logfile is appendable |
toString | public String toString()(Code) | | returning the string with all values
String, all values as a String |
|
|