|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.log.Log
public class Log
Base logging class which can be used anywhere to log messages and exceptions.
Constructor Summary | |
---|---|
Log()
|
Method Summary | |
---|---|
static void |
debug(java.lang.Object logFor,
java.lang.String message,
java.lang.Object... data)
Writes specified information message into log. |
static void |
error(java.lang.Object logFor,
java.lang.String message)
Writes specified exception message into log. |
static void |
error(java.lang.Object logFor,
java.lang.String message,
java.lang.Throwable throwable)
Writes specified exception message into log. |
static void |
error(java.lang.Object logFor,
java.lang.Throwable throwable)
Writes specified exception into log. |
static void |
info(java.lang.Object logFor,
java.lang.String message,
java.lang.Object... data)
Writes specified information message into log. |
static void |
initialize()
Initializes SettingsManager. |
static boolean |
isDebugEnabled()
Returns whether debug messages are enabled or not. |
static void |
setDebugEnabled(boolean debugEnabled)
Sets whether debug messages are enabled or not. |
static void |
warn(java.lang.Object logFor,
java.lang.String message)
Writes specified warning message into log. |
static void |
warn(java.lang.Object logFor,
java.lang.String message,
java.lang.Throwable throwable)
Writes specified warning message into log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static void initialize()
public static boolean isDebugEnabled()
public static void setDebugEnabled(boolean debugEnabled)
debugEnabled
- whether debug messages are enabled or notpublic static void info(java.lang.Object logFor, java.lang.String message, java.lang.Object... data)
logFor
- where to log message is attachedmessage
- information messagedata
- formatting datapublic static void debug(java.lang.Object logFor, java.lang.String message, java.lang.Object... data)
logFor
- where to log message is attachedmessage
- debugEnabled messagedata
- formatting datapublic static void warn(java.lang.Object logFor, java.lang.String message)
logFor
- where to log message is attachedmessage
- warning messagepublic static void warn(java.lang.Object logFor, java.lang.String message, java.lang.Throwable throwable)
logFor
- where to log message is attachedmessage
- warning messagethrowable
- exceptionpublic static void error(java.lang.Object logFor, java.lang.Throwable throwable)
logFor
- where to log message is attachedthrowable
- exceptionpublic static void error(java.lang.Object logFor, java.lang.String message, java.lang.Throwable throwable)
logFor
- where to log message is attachedmessage
- exception messagethrowable
- exceptionpublic static void error(java.lang.Object logFor, java.lang.String message)
logFor
- where to log message is attachedmessage
- exception message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |