public class FileLogger extends ConsoleLogger
Logger.Level
Modifier and Type | Field and Description |
---|---|
protected String |
m_LineFeed
the line feed.
|
protected File |
m_LogFile
the log file.
|
m_DateFormat, m_MinLevel, m_Properties, m_Singleton, PROPERTIES_FILE
Constructor and Description |
---|
FileLogger() |
Modifier and Type | Method and Description |
---|---|
protected void |
append(String s)
Appends the given string to the log file (without new line!).
|
protected void |
doLog(Logger.Level level,
String msg,
String cls,
String method,
int lineno)
Performs the actual logging.
|
protected File |
getLogFile()
Returns the log file to use.
|
String |
getRevision()
Returns the revision string.
|
protected void |
initialize()
Initializes the logger.
|
getLocation, getMinLevel, getSingleton, log, log
protected File m_LogFile
protected String m_LineFeed
protected void initialize()
initialize
in class Logger
protected File getLogFile()
protected void append(String s)
s
- the string to appendprotected void doLog(Logger.Level level, String msg, String cls, String method, int lineno)
doLog
in class ConsoleLogger
level
- the level of the messagemsg
- the message to logcls
- the classname originating the log eventmethod
- the method originating the log eventlineno
- the line number originating the log eventpublic String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ConsoleLogger
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.