public class OutputLogger extends FileLogger
Modifier and Type | Class and Description |
---|---|
static class |
OutputLogger.OutputPrintStream
A print stream class to capture all data from stdout and stderr.
|
Logger.Level
Modifier and Type | Field and Description |
---|---|
protected Tee |
m_StdErr
the Tee instance to redirect stderr.
|
protected Tee |
m_StdOut
the Tee instance to redirect stdout.
|
protected OutputLogger.OutputPrintStream |
m_StreamErr
the stream object used for logging stderr.
|
protected OutputLogger.OutputPrintStream |
m_StreamOut
the stream object used for logging stdout.
|
m_LineFeed, m_LogFile
m_DateFormat, m_MinLevel, m_Properties, m_Singleton, PROPERTIES_FILE
Constructor and Description |
---|
OutputLogger() |
Modifier and Type | Method and Description |
---|---|
protected void |
doLog(Logger.Level level,
String msg,
String cls,
String method,
int lineno)
Performs the actual logging.
|
String |
getRevision()
Returns the revision string.
|
protected void |
initialize()
Initializes the logger.
|
append, getLogFile
getLocation, getMinLevel, getSingleton, log, log
protected OutputLogger.OutputPrintStream m_StreamOut
protected OutputLogger.OutputPrintStream m_StreamErr
protected Tee m_StdOut
protected Tee m_StdErr
protected void initialize()
initialize
in class FileLogger
protected void doLog(Logger.Level level, String msg, String cls, String method, int lineno)
doLog
in class FileLogger
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 FileLogger
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.