|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.logging.DisplayLogger
atg.nucleus.logging.PrintStreamLogger
public class PrintStreamLogger
This log listener writes the logged events directly to the configured print stream.
| 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 | |
|---|---|
PrintStreamLogger()
Constructs a PrintStreamLogger. |
|
| Method Summary | |
|---|---|
protected atg.nucleus.logging.LogPrintStream |
createPrefixLogPrintStream(java.io.PrintStream pLogStream,
boolean pSuppressTimestamp)
Create the prefix log print stream. |
void |
doStartService()
This is called after the service has been created, added to the Registry, and configured. |
void |
doStopService()
This is called when the service is to be stopped. |
java.io.PrintStream |
getPrintStream()
Returns PrintStream. |
boolean |
isTerse()
Whether to use a terse TersePrintStreamLogger. |
void |
setPrintStream(java.io.PrintStream pPrintStream)
Sets PrintStream to write log events to. |
void |
setTerse(boolean pTerse)
Whether to use a terse TersePrintStreamLogger. |
| 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 PrintStreamLogger()
| Method Detail |
|---|
public void setTerse(boolean pTerse)
public boolean isTerse()
public void setPrintStream(java.io.PrintStream pPrintStream)
pPrintStream - the PrintStream
protected atg.nucleus.logging.LogPrintStream createPrefixLogPrintStream(java.io.PrintStream pLogStream,
boolean pSuppressTimestamp)
pLogStream - to log stream to wrappSuppressTimestamp - whether to suppress the time stamp.public java.io.PrintStream getPrintStream()
public void doStartService()
throws ServiceException
doStartService in class GenericServiceServiceException - if an error occurred during the operation
public void doStopService()
throws ServiceException
doStopService in class GenericServiceServiceException - if an error occurred during the operation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||