org.jwarp.service.log
Interface ILogService

All Superinterfaces:
IConfigurable, IExceptionProvider, IService
All Known Implementing Classes:
LogService

public interface ILogService
extends IService

This is the log service interface.

Version:
1.0
Author:
Anatole Tresch

Field Summary
static java.lang.String SERVICE_TYPE
          Service type string constant
 
Fields inherited from interface org.jwarp.service.IService
SERVICE_STATUS_CREATED, SERVICE_STATUS_NOT_AVAILABLE, SERVICE_STATUS_READY, SERVICE_STATUS_RESUMING, SERVICE_STATUS_RUNNING, SERVICE_STATUS_STARTING, SERVICE_STATUS_STOPPED, SERVICE_STATUS_STOPPING, SERVICE_STATUS_SUSPENDED
 
Method Summary
 void addLog(ILogWriter log, java.lang.String logName)
          Adds a log as an service item.
 ILogWriter getLogWriter()
          Returns the default LogWriter
 ILogWriter getLogWriter(java.lang.String name)
          Returns the LogWriter identified by name
 
Methods inherited from interface org.jwarp.service.IService
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 
Methods inherited from interface org.jwarp.common.IExceptionProvider
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener
 

Field Detail

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
Service type string constant
Method Detail

getLogWriter

public ILogWriter getLogWriter()
Returns the default LogWriter

getLogWriter

public ILogWriter getLogWriter(java.lang.String name)
Returns the LogWriter identified by name
Parameters:
name - Name of the LogWriter
Returns:
The LogWriter or null, if the name does not match a valid LogWriter

addLog

public void addLog(ILogWriter log,
                   java.lang.String logName)
Adds a log as an service item. This method is used on setting up an application environment.
Parameters:
log - The new log
logName - The name under which the log should be registered
ticket - The user

©   O R C A   S y s t e m s