|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.util.AppLogService
public final class AppLogService
This class provides writing services in the application logs files
Method Summary | |
---|---|
static void |
debug(java.lang.Object objToLog)
Log a message object with the DEBUG level. |
static void |
debug(java.lang.String strLogger,
java.lang.Object objToLog)
Log a message object with the DEBUG level. |
static void |
error(java.lang.Object objToLog)
Log a message object with the ERROR Level. |
static void |
error(java.lang.Object message,
java.lang.Throwable t)
Log a message object with the ERROR level including the stack trace of the Throwable t passed as parameter. |
static void |
info(java.lang.Object objToLog)
Log a message object with the INFO Level in application.log |
static void |
init(java.lang.String strConfigPath,
java.lang.String strConfigFile)
initializes the errors log file and the application log file |
static boolean |
isDebugEnabled()
Tells if the logger accepts debug messages. |
static boolean |
isDebugEnabled(java.lang.String strLogger)
Tells if the logger accepts debug messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void init(java.lang.String strConfigPath, java.lang.String strConfigFile)
strConfigPath
- The strConfigPathstrConfigFile
- The strConfigFilepublic static boolean isDebugEnabled()
public static void debug(java.lang.Object objToLog)
objToLog
- the message object to logpublic static boolean isDebugEnabled(java.lang.String strLogger)
public static void debug(java.lang.String strLogger, java.lang.Object objToLog)
objToLog
- the message object to logpublic static void error(java.lang.Object objToLog)
objToLog
- the message object to logpublic static void error(java.lang.Object message, java.lang.Throwable t)
message
- the message object to logt
- the exception to log, including its stack tracepublic static void info(java.lang.Object objToLog)
objToLog
- the message object to log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |