public class PrintStreamLogger extends DisplayLogger
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
PrintStreamLogger()
Constructs a PrintStreamLogger.
|
Modifier and Type | Method and Description |
---|---|
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.
|
generateCroppedStackTrace, getLoggingEnabled, getLogStream, getMaxLinesInStackTrace, getPrefixLogStream, getPrintStackTrace, getWrittenEventCount, isCropStackTrace, isPrefixEachLine, isPrefixEachMessage, isSuppressTimestamp, logEvent, setCropStackTrace, setLoggingEnabled, setLogStream, setMaxLinesInStackTrace, setPrefixEachLine, setPrefixEachMessage, setPrefixLogStream, setPrintStackTrace, setSuppressTimestamp, writeLogEvent
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public void setTerse(boolean pTerse)
public boolean isTerse()
public void setPrintStream(java.io.PrintStream pPrintStream)
pPrintStream
- the PrintStreamprotected 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 GenericService
ServiceException
- if an error occurred during the operationpublic void doStopService() throws ServiceException
doStopService
in class GenericService
ServiceException
- if an error occurred during the operation