Modifier and Type | Field and Description |
---|---|
protected File |
logFile
File in which write the logs.
|
Constructor and Description |
---|
FileLogger()
Creates a FileLogger.
|
FileLogger(Properties props)
Creates a FileLogger with a configuration.
|
FileLogger(String name)
Creates a FileLogger with a name.
|
FileLogger(String name,
Properties props)
Creates a FileLogger with a name and a configuration.
|
protected File logFile
public FileLogger(String name, Properties props)
log.fileLogger.file
".name
- name of the Loggerprops
- configuration of the Loggerfor all the other properties see
the Logger constructor
public FileLogger(String name)
ConfigMgr.getConfigParams()
method).name
- name of the LoggerFileLogger(String, Properties)
public FileLogger(Properties props)
props
- configuration of the LoggerFileLogger(String, Properties)
public FileLogger()
FileLogger(String, Properties)
public void log(String log, Level level)
Logger.log(String, Level)
method.public void log(Exception e, Level level)
If it is not possible, invokes the Logger.log(Exception, Level)
method.
© 2013 andynaz - http://andynaz.altervista.org