public class DispatchLogger extends GenericService implements LogListener
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
protected LogListener[] | 
mDefaultDestinations
The default listeners for events that do not match any classes 
 | 
protected java.lang.Class[] | 
mLogEventClasses
The list of log event class names to sort by. 
 | 
protected LogListener[] | 
mSortListeners
The list of respective log listeners to dispatch to. 
 | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
DispatchLogger()
Constructs a DispatchLogger. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
LogListener[] | 
getDefaultDestinations()
Returns the list of destinations to which log events should be
 sent if they do not match any of the specified classes. 
 | 
LogListener[] | 
getLogDestinations()
Returns log listeners to dispatch log events to. 
 | 
void | 
logEvent(LogEvent pLogEvent)
Writes the given log event out to the log file. 
 | 
void | 
setDefaultDestinations(LogListener[] pDefaultDestinations)
Sets the list of destinations to which log events should be sent
 if they do not match any of the specified classes. 
 | 
void | 
setLogDestinations(LogListener[] pLogListeners)
Sets the list of log listeners to dispatch log events to. 
 | 
void | 
setLogEvents(java.lang.String[] pLogEventClassNames)
Sets the list of log event class names to sort by. 
 | 
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, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
protected java.lang.Class[] mLogEventClasses
protected LogListener[] mSortListeners
protected LogListener[] mDefaultDestinations
public void setLogEvents(java.lang.String[] pLogEventClassNames)
public void setLogDestinations(LogListener[] pLogListeners)
public LogListener[] getLogDestinations()
public LogListener[] getDefaultDestinations()
public void setDefaultDestinations(LogListener[] pDefaultDestinations)
public void doStartService()
                    throws ServiceException
doStartService in class GenericServiceServiceException - if an error occurred during the operationpublic void doStopService()
                   throws ServiceException
doStopService in class GenericServiceServiceException - if an error occurred during the operationpublic void logEvent(LogEvent pLogEvent)
logEvent in interface LogListenerpLogEvent - the log event