public class FileLogger extends ConsoleLogger
Logger.Level| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_LineFeed
the line feed.
|
protected java.io.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(java.lang.String s)
Appends the given string to the log file (without new line!).
|
protected void |
doLog(Logger.Level level,
java.lang.String msg,
java.lang.String cls,
java.lang.String method,
int lineno)
Performs the actual logging.
|
protected java.io.File |
getLogFile()
Returns the log file to use.
|
java.lang.String |
getRevision()
Returns the revision string.
|
protected void |
initialize()
Initializes the logger.
|
getLocation, getMinLevel, getSingleton, log, logprotected java.io.File m_LogFile
protected java.lang.String m_LineFeed
protected void initialize()
initialize in class Loggerprotected java.io.File getLogFile()
protected void append(java.lang.String s)
s - the string to appendprotected void doLog(Logger.Level level, java.lang.String msg, java.lang.String cls, java.lang.String method, int lineno)
doLog in class ConsoleLoggerlevel - 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 java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class ConsoleLogger