Package de.mhus.lib.logging
Class Log4JFactory.Log4JLog
- java.lang.Object
-
- de.mhus.lib.core.logging.LogEngine
-
- de.mhus.lib.logging.Log4JFactory.Log4JLog
-
- Enclosing class:
- Log4JFactory
public class Log4JFactory.Log4JLog extends LogEngine
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddebug(Object message)Log a message to the Log4j Logger withDEBUGpriority.voiddebug(Object message, Throwable t)Log an error to the Log4j Logger withDEBUGpriority.voiddoInitialize(LogFactory logFactory)voiderror(Object message)Log a message to the Log4j Logger withERRORpriority.voiderror(Object message, Throwable t)Log an error to the Log4j Logger withERRORpriority.voidfatal(Object message)Log a message to the Log4j Logger withFATALpriority.voidfatal(Object message, Throwable t)Log an error to the Log4j Logger withFATALpriority.org.apache.log4j.LoggergetLogger()Return the native Logger instance we are using.voidinfo(Object message)Log a message to the Log4j Logger withINFOpriority.voidinfo(Object message, Throwable t)Log an error to the Log4j Logger withINFOpriority.booleanisDebugEnabled()Check whether the Log4j Logger used is enabled forDEBUGpriority.booleanisErrorEnabled()Check whether the Log4j Logger used is enabled forERRORpriority.booleanisFatalEnabled()Check whether the Log4j Logger used is enabled forFATALpriority.booleanisInfoEnabled()Check whether the Log4j Logger used is enabled forINFOpriority.booleanisTraceEnabled()Check whether the Log4j Logger used is enabled forTRACEpriority.booleanisWarnEnabled()Check whether the Log4j Logger used is enabled forWARNpriority.voidtrace(Object message)Log a message to the Log4j Logger withTRACEpriority.voidtrace(Object message, Throwable t)Log an error to the Log4j Logger withTRACEpriority.voidwarn(Object message)Log a message to the Log4j Logger withWARNpriority.voidwarn(Object message, Throwable t)Log an error to the Log4j Logger withWARNpriority.
-
-
-
Method Detail
-
trace
public void trace(Object message)
Log a message to the Log4j Logger withTRACEpriority. Currently logs toDEBUGlevel in Log4J.
-
trace
public void trace(Object message, Throwable t)
Log an error to the Log4j Logger withTRACEpriority. Currently logs toDEBUGlevel in Log4J.
-
debug
public void debug(Object message)
Log a message to the Log4j Logger withDEBUGpriority.
-
debug
public void debug(Object message, Throwable t)
Log an error to the Log4j Logger withDEBUGpriority.
-
info
public void info(Object message)
Log a message to the Log4j Logger withINFOpriority.
-
info
public void info(Object message, Throwable t)
Log an error to the Log4j Logger withINFOpriority.
-
warn
public void warn(Object message)
Log a message to the Log4j Logger withWARNpriority.
-
warn
public void warn(Object message, Throwable t)
Log an error to the Log4j Logger withWARNpriority.
-
error
public void error(Object message)
Log a message to the Log4j Logger withERRORpriority.
-
error
public void error(Object message, Throwable t)
Log an error to the Log4j Logger withERRORpriority.
-
fatal
public void fatal(Object message)
Log a message to the Log4j Logger withFATALpriority.
-
fatal
public void fatal(Object message, Throwable t)
Log an error to the Log4j Logger withFATALpriority.
-
getLogger
public org.apache.log4j.Logger getLogger()
Return the native Logger instance we are using.- Returns:
- the logger
-
isDebugEnabled
public boolean isDebugEnabled()
Check whether the Log4j Logger used is enabled forDEBUGpriority.- Specified by:
isDebugEnabledin classLogEngine- Returns:
- true if log level is debug
-
isErrorEnabled
public boolean isErrorEnabled()
Check whether the Log4j Logger used is enabled forERRORpriority.- Specified by:
isErrorEnabledin classLogEngine- Returns:
- true if log level is error
-
isFatalEnabled
public boolean isFatalEnabled()
Check whether the Log4j Logger used is enabled forFATALpriority.- Specified by:
isFatalEnabledin classLogEngine- Returns:
- true if log level is fatal
-
isInfoEnabled
public boolean isInfoEnabled()
Check whether the Log4j Logger used is enabled forINFOpriority.- Specified by:
isInfoEnabledin classLogEngine- Returns:
- true if log level is info
-
isTraceEnabled
public boolean isTraceEnabled()
Check whether the Log4j Logger used is enabled forTRACEpriority. For Log4J, this returns the value ofisDebugEnabled()- Specified by:
isTraceEnabledin classLogEngine- Returns:
- true if log level is trace
-
isWarnEnabled
public boolean isWarnEnabled()
Check whether the Log4j Logger used is enabled forWARNpriority.- Specified by:
isWarnEnabledin classLogEngine- Returns:
- true if log level is warn
-
doInitialize
public void doInitialize(LogFactory logFactory)
- Specified by:
doInitializein classLogEngine
-
-