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_LogFilem_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,
java.lang.String msg,
java.lang.String cls,
java.lang.String method,
int lineno)
Performs the actual logging.
|
java.lang.String |
getRevision()
Returns the revision string.
|
protected void |
initialize()
Initializes the logger.
|
append, getLogFilegetLocation, getMinLevel, getSingleton, log, logprotected OutputLogger.OutputPrintStream m_StreamOut
protected OutputLogger.OutputPrintStream m_StreamErr
protected Tee m_StdOut
protected Tee m_StdErr
protected void initialize()
initialize in class FileLoggerprotected void doLog(Logger.Level level, java.lang.String msg, java.lang.String cls, java.lang.String method, int lineno)
doLog in class FileLoggerlevel - 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 FileLogger