it.andynaz.log
Modifier and Type | Field and Description |
---|---|
protected File |
logFile
File in which write the logs.
|
Constructor and Description |
---|
FileLogger()
Creates a FileLogger.
|
FileLogger(Config conf)
Deprecated.
Use
FileLogger(Properties) instead; this method will
be removed in future release. |
FileLogger(Properties props)
Creates a FileLogger with a configuration.
|
FileLogger(String name)
Creates a FileLogger with a name.
|
FileLogger(String name,
Config conf)
Deprecated.
Use
FileLogger(String, Properties) instead; this
method will be removed in future release. |
FileLogger(String name,
Properties props)
Creates a FileLogger with a name and a configuration.
|
protected File logFile
@Deprecated public FileLogger(String name, Config conf)
FileLogger(String, Properties)
instead; this
method will be removed in future release.The path of the file in which write the logs is taken from the property "fileLogger.file".
name
- name of the Loggerconf
- configuration of the Loggerpublic FileLogger(String name, Properties props)
The path of the log file is taken from the property "log.fileLogger.file
". Note that the param name is a little different from
the one used in the FileLogger(String, Config)
method.
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)
@Deprecated public FileLogger(Config conf)
FileLogger(Properties)
instead; this method will
be removed in future release.conf
- configuration of the Loggerpublic 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