|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.andynaz.log.Logger
it.andynaz.log.FileLogger
public class FileLogger
File Logger. Writes the logs on a text file.
Each constructor calls the corresponding constructor of the Logger
class, so that FileLogger objects inherits alla the properties the Logger
class has.
Field Summary | |
---|---|
protected File |
logFile
File in which write the logs. |
Fields inherited from class it.andynaz.log.Logger |
---|
dateFormat, level, name, separator, withDate, withLevel |
Constructor Summary | |
---|---|
FileLogger(Config conf)
Creates a FileLogger with a configuration. |
|
FileLogger(File logFile)
Creates a FileLogger. |
|
FileLogger(String name)
Creates a FileLogger with a name. |
|
FileLogger(String name,
Config conf)
Creates a FileLogger with a name and a configuration. |
Method Summary | |
---|---|
void |
log(String log,
Level level)
Writes the log. |
Methods inherited from class it.andynaz.log.Logger |
---|
getDate, getPrefix, log, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File logFile
Constructor Detail |
---|
public FileLogger(String name, Config conf)
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)
name
- name of the Loggerpublic FileLogger(Config conf)
conf
- configuration of the Loggerpublic FileLogger(File logFile)
Method Detail |
---|
public void log(String log, Level level)
Logger.log(java.lang.String, it.andynaz.log.Level)
method.
log
in class Logger
log
- log to be writtenlevel
- log level
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |