|
EAF 7.1 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.logger.LoggerBase
org.apache.catalina.logger.TomcatMonologFileLogger
public class TomcatMonologFileLogger
Implementation of Logger that appends log messages to a file named {prefix}.{date}.{suffix} in a configured directory, with an optional preceding timestamp.
Field Summary | |
---|---|
protected static java.lang.String |
info
The descriptive information about this implementation. |
static java.lang.String |
PROPERTY_FILE
|
Fields inherited from class org.apache.catalina.logger.LoggerBase |
---|
container, controller, debug, domain, host, lifecycle, mserver, oname, support, verbosity |
Fields inherited from interface org.apache.catalina.Lifecycle |
---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, START_EVENT, STOP_EVENT |
Fields inherited from interface org.apache.catalina.Logger |
---|
DEBUG, ERROR, FATAL, INFORMATION, WARNING |
Constructor Summary | |
---|---|
TomcatMonologFileLogger()
|
Method Summary | |
---|---|
void |
configure()
|
void |
configure(com.lutris.util.Config logConfig)
Configure Logger with given config section |
void |
configure(java.lang.String monologConfFile)
|
void |
log(java.lang.String msg)
Writes the specified message to a servlet log file, usually an event log. |
void |
start()
|
void |
stop()
Gracefully terminate the active use of the public methods of this component. |
Methods inherited from class org.apache.catalina.logger.LoggerBase |
---|
addLifecycleListener, addPropertyChangeListener, createObjectName, destroy, findLifecycleListeners, getContainer, getController, getDebug, getDomain, getInfo, getObjectName, getVerbosity, init, log, log, log, log, postDeregister, postRegister, preDeregister, preRegister, removeLifecycleListener, removePropertyChangeListener, setContainer, setController, setDebug, setVerbosity, setVerbosityLevel |
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 PROPERTY_FILE
protected static final java.lang.String info
Constructor Detail |
---|
public TomcatMonologFileLogger() throws com.lutris.util.ConfigException
com.lutris.util.ConfigException
Method Detail |
---|
public void log(java.lang.String msg)
log
in interface org.apache.catalina.Logger
log
in class org.apache.catalina.logger.LoggerBase
msg
- A String
specifying the message to be written
to the log filepublic void configure(java.lang.String monologConfFile) throws com.lutris.util.ConfigException
com.lutris.util.ConfigException
public void configure() throws com.lutris.util.ConfigException
com.lutris.util.ConfigException
public void configure(com.lutris.util.Config logConfig) throws com.lutris.util.ConfigException
logConfig
- containing parameters for configuring logger
com.lutris.util.ConfigException
public void start() throws org.apache.catalina.LifecycleException
start
in interface org.apache.catalina.Lifecycle
start
in class org.apache.catalina.logger.LoggerBase
org.apache.catalina.LifecycleException
public void stop() throws org.apache.catalina.LifecycleException
stop
in interface org.apache.catalina.Lifecycle
stop
in class org.apache.catalina.logger.LoggerBase
org.apache.catalina.LifecycleException
- if this component detects a fatal error
that needs to be reported
|
EAF 7.1 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |