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 |
| Methods inherited from interface org.jwarp.service.IService |
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend |
SERVICE_TYPE
public static final java.lang.String SERVICE_TYPE
- Service type string constant
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 loglogName - The name under which the log should be registeredticket - The user