|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.logging.CommonLoggingMonologLogger
public final class CommonLoggingMonologLogger
Implementation of Log
that maps directly to a Monolog
Logger. Initial configuration of the corresponding
Logger instances should be done in the usual manner, as outlined in
the Monolog documentation.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_FILE
|
Constructor Summary | |
---|---|
CommonLoggingMonologLogger()
|
|
CommonLoggingMonologLogger(org.objectweb.util.monolog.api.Logger logger)
For use with a Monolog factory |
|
CommonLoggingMonologLogger(java.lang.String name)
Base constructor |
Method Summary | |
---|---|
void |
configure()
Default configuration of the logger. |
void |
configure(java.lang.String monologConfFile)
Configure the logger. |
void |
debug(java.lang.Object message)
Log a message to the CommonLoggingMonologLogger Logger with DEBUG priority. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Log an error to the CommonLoggingMonologLogger Logger with DEBUG priority. |
void |
error(java.lang.Object message)
Log a message to the CommonLoggingMonologLogger Logger with ERROR priority. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Log an error to the CommonLoggingMonologLogger Logger with ERROR priority. |
void |
fatal(java.lang.Object message)
Log a message to the CommonLoggingMonologLogger Logger with FATAL priority. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Log an error to the CommonLoggingMonologLogger Logger with FATAL priority. |
org.objectweb.util.monolog.api.Logger |
getLogger()
Return the native Logger instance we are using. |
void |
info(java.lang.Object message)
Log a message to the CommonLoggingMonologLogger Logger with INFO priority. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Log an error to the CommonLoggingMonologLogger Logger with INFO priority. |
boolean |
isDebugEnabled()
Check whether the CommonLoggingMonologLogger Logger used is enabled for DEBUG priority. |
boolean |
isErrorEnabled()
Check whether the CommonLoggingMonologLogger Logger used is enabled for ERROR priority. |
boolean |
isFatalEnabled()
Check whether the CommonLoggingMonologLogger Logger used is enabled for FATAL priority. |
boolean |
isInfoEnabled()
Check whether the CommonLoggingMonologLogger Logger used is enabled for INFO priority. |
boolean |
isTraceEnabled()
Check whether the CommonLoggingMonologLogger Logger used is enabled for TRACE priority. |
boolean |
isWarnEnabled()
Check whether the CommonLoggingMonologLogger Logger used is enabled for WARN priority. |
void |
trace(java.lang.Object message)
Log a message to the CommonLoggingMonologLogger with TRACE priority. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Log an error to the CommonLoggingMonologLogger Logger with TRACE priority. |
void |
warn(java.lang.Object message)
Log a message to the CommonLoggingMonologLogger Logger with WARN priority. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Log an error to the CommonLoggingMonologLogger Logger with WARN priority. |
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
Constructor Detail |
---|
public CommonLoggingMonologLogger() throws com.lutris.util.ConfigException
com.lutris.util.ConfigException
public CommonLoggingMonologLogger(java.lang.String name) throws com.lutris.util.ConfigException
com.lutris.util.ConfigException
public CommonLoggingMonologLogger(org.objectweb.util.monolog.api.Logger logger)
Method Detail |
---|
public void trace(java.lang.Object message)
TRACE
priority.
Currently logs to DEBUG
level in CommonLoggingMonologLogger.
trace
in interface org.apache.commons.logging.Log
public void trace(java.lang.Object message, java.lang.Throwable t)
TRACE
priority.
Currently logs to DEBUG
level in CommonLoggingMonologLogger.
trace
in interface org.apache.commons.logging.Log
public void debug(java.lang.Object message)
DEBUG
priority.
debug
in interface org.apache.commons.logging.Log
public void debug(java.lang.Object message, java.lang.Throwable t)
DEBUG
priority.
debug
in interface org.apache.commons.logging.Log
public void info(java.lang.Object message)
INFO
priority.
info
in interface org.apache.commons.logging.Log
public void info(java.lang.Object message, java.lang.Throwable t)
INFO
priority.
info
in interface org.apache.commons.logging.Log
public void warn(java.lang.Object message)
WARN
priority.
warn
in interface org.apache.commons.logging.Log
public void warn(java.lang.Object message, java.lang.Throwable t)
WARN
priority.
warn
in interface org.apache.commons.logging.Log
public void error(java.lang.Object message)
ERROR
priority.
error
in interface org.apache.commons.logging.Log
public void error(java.lang.Object message, java.lang.Throwable t)
ERROR
priority.
error
in interface org.apache.commons.logging.Log
public void fatal(java.lang.Object message)
FATAL
priority.
fatal
in interface org.apache.commons.logging.Log
public void fatal(java.lang.Object message, java.lang.Throwable t)
FATAL
priority.
fatal
in interface org.apache.commons.logging.Log
public org.objectweb.util.monolog.api.Logger getLogger()
public boolean isDebugEnabled()
DEBUG
priority.
isDebugEnabled
in interface org.apache.commons.logging.Log
public boolean isErrorEnabled()
ERROR
priority.
isErrorEnabled
in interface org.apache.commons.logging.Log
public boolean isFatalEnabled()
FATAL
priority.
isFatalEnabled
in interface org.apache.commons.logging.Log
public boolean isInfoEnabled()
INFO
priority.
isInfoEnabled
in interface org.apache.commons.logging.Log
public boolean isTraceEnabled()
TRACE
priority.
For CommonLoggingMonologLogger, this returns the value of isDebugEnabled()
isTraceEnabled
in interface org.apache.commons.logging.Log
public boolean isWarnEnabled()
WARN
priority.
isWarnEnabled
in interface org.apache.commons.logging.Log
public void configure(java.lang.String monologConfFile)
logFile
- The log file to write to.fileLevels
- List of levels that will be written to the file.stderrLevels
- List of levels that will be written to stderr.
The same level may appear in both lists.
java.io.IOException
- If an error occurs opening the log file.public void configure() throws com.lutris.util.ConfigException
com.lutris.util.ConfigException
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |