public final class AppLogService extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
static void |
preinit()
Initializes a very basic logging system (everything to stdout)
|
public static void preinit()
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 namepublic 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 logpublic 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 logCopyright © 2020 City of Paris. All rights reserved.