|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.logging.DisplayLogger
public abstract class DisplayLogger
This is the base class for loggers which write to standard i/o devices such as a file or screen. It has properties which control the formatting of the output.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
DisplayLogger()
|
Method Summary | |
---|---|
protected java.lang.String |
generateCroppedStackTrace(java.lang.Throwable pThrowable)
|
boolean |
getLoggingEnabled()
|
protected java.io.PrintStream |
getLogStream()
return LogStream |
int |
getMaxLinesInStackTrace()
|
protected atg.nucleus.logging.LogPrintStream |
getPrefixLogStream()
return PrefixLogStream |
boolean |
getPrintStackTrace()
|
int |
getWrittenEventCount()
Returns the number of log events written. |
boolean |
isCropStackTrace()
Returns property CropStackTrace |
boolean |
isPrefixEachLine()
|
boolean |
isPrefixEachMessage()
|
boolean |
isSuppressTimestamp()
Returns True if each message should only be prefixed with an originator name. |
void |
logEvent(LogEvent pLogEvent)
Writes the given log event out to the log stream. |
void |
setCropStackTrace(boolean pCropStackTrace)
Sets property CropStackTrace, default is true |
void |
setLoggingEnabled(boolean pLoggingEnabled)
Sets the property LoggingEnabled. |
protected void |
setLogStream(java.io.PrintStream pLogStream)
|
void |
setMaxLinesInStackTrace(int pMaxLinesInStackTrace)
|
void |
setPrefixEachLine(boolean pPrefixEachLine)
|
void |
setPrefixEachMessage(boolean pPrefixEachMessage)
|
protected void |
setPrefixLogStream(atg.nucleus.logging.LogPrintStream pPrefixLogStream)
|
void |
setPrintStackTrace(boolean pPrintStackTrace)
Sets the property PrintStackTrace. |
void |
setSuppressTimestamp(boolean pSuppressTimestamp)
|
void |
writeLogEvent(LogEvent pLogEvent)
Writes the given log event out to the log stream. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public DisplayLogger()
Method Detail |
---|
public void setCropStackTrace(boolean pCropStackTrace)
public boolean isCropStackTrace()
public void setMaxLinesInStackTrace(int pMaxLinesInStackTrace)
public int getMaxLinesInStackTrace()
public void setSuppressTimestamp(boolean pSuppressTimestamp)
public boolean isSuppressTimestamp()
public void setPrefixEachMessage(boolean pPrefixEachMessage)
public boolean isPrefixEachMessage()
public void setPrefixEachLine(boolean pPrefixEachLine)
public boolean isPrefixEachLine()
public void setPrintStackTrace(boolean pPrintStackTrace)
public boolean getPrintStackTrace()
public int getWrittenEventCount()
public void setLoggingEnabled(boolean pLoggingEnabled)
public boolean getLoggingEnabled()
public void logEvent(LogEvent pLogEvent)
logEvent
in interface LogListener
pLogEvent
- the log eventpublic void writeLogEvent(LogEvent pLogEvent)
pLogEvent
- the log eventprotected java.lang.String generateCroppedStackTrace(java.lang.Throwable pThrowable)
protected java.io.PrintStream getLogStream()
protected void setLogStream(java.io.PrintStream pLogStream)
protected atg.nucleus.logging.LogPrintStream getPrefixLogStream()
protected void setPrefixLogStream(atg.nucleus.logging.LogPrintStream pPrefixLogStream)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |