|
||||||||||
| 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(Object objToLog)
Log a message object with the DEBUG level. |
static void |
debug(String strLogger,
Object objToLog)
Log a message object with the DEBUG level. |
static void |
error(Object objToLog)
Log a message object with the ERROR Level. |
static void |
error(Object message,
Throwable t)
Log a message object with the ERROR level including the stack trace of the Throwable t passed as parameter. |
static void |
info(Object objToLog)
Log a message object with the INFO Level in application.log |
static void |
init(String strConfigPath,
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(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(String strConfigPath,
String strConfigFile)
strConfigPath - The strConfigPathstrConfigFile - The strConfigFilepublic static boolean isDebugEnabled()
public static void debug(Object objToLog)
objToLog - the message object to logpublic static boolean isDebugEnabled(String strLogger)
strLogger - The Logger name
public static void debug(String strLogger,
Object objToLog)
strLogger - The Logger nameobjToLog - the message object to logpublic static void error(Object objToLog)
objToLog - the message object to log
public static void error(Object message,
Throwable t)
message - the message object to logt - the exception to log, including its stack tracepublic static void info(Object objToLog)
objToLog - the message object to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||