public class SimpleLog extends Object
Modifier and Type | Method and Description |
---|---|
void |
debug(Object mesg)
Logs the message object with the DEBUG level
|
void |
debug(Object mesg1, Object mesg2)
Logs the two message objects with the DEBUG level
|
void |
debug(Object mesg, Throwable t)
Logs the message object with the DEBUG level including the stack trace of the Throwable t passed as parameter
|
void |
error(Object mesg)
Logs the message object with the ERROR level
|
void |
error(Object mesg, Throwable t)
Logs the message object with the ERROR level including the stack trace of the Throwable t passed as parameter
|
void |
fatal(Object mesg)
Logs the message object with the FATAL level
|
void |
fatal(Object mesg, Throwable t)
Logs the message object with the FATAL level including the stack trace of the Throwable t passed as parameter
|
static SimpleLog |
getLog(Class c)
Returns the SimpleLog logger for the given class
|
void |
info(Object mesg)
Logs the message object with the INFO level
|
void |
info(Object mesg1, Object mesg2)
Logs the two message objects with the INFO level
|
void |
info(Object mesg, Throwable t)
Logs the message object with the INFO level including the stack trace of the Throwable t passed as parameter
|
boolean |
isDebugEnabled()
Returns true if DEBUG level logging is enabled.
|
boolean |
isErrorEnabled()
Returns true if ERROR level logging is enabled.
|
boolean |
isFatalEnabled()
Returns true if FATAL level logging is enabled.
|
boolean |
isInfoEnabled()
Returns true if INFO level logging is enabled.
|
boolean |
isWarnEnabled()
Returns true if WARN level logging is enabled.
|
void |
warn(Object mesg)
Logs the message object with the WARN level
|
void |
warn(Object mesg1, Object mesg2)
Logs the two message objects with the WARN level
|
void |
warn(Object mesg, Throwable t)
Logs the message object with the WARN level including the stack trace of the Throwable t passed as parameter
|
public void debug(Object mesg)
mesg
- the message to logpublic void debug(Object mesg1, Object mesg2)
mesg1
- the first message to logmesg2
- the second message to logpublic void debug(Object mesg, Throwable t)
mesg
- the message to logt
- the exception to log, including its stack tracepublic void error(Object mesg)
mesg
- the message to logpublic void error(Object mesg, Throwable t)
mesg
- the message to logt
- the exception to log, including its stack tracepublic void fatal(Object mesg)
mesg
- the message to logpublic void fatal(Object mesg, Throwable t)
mesg
- the message to logt
- the exception to log, including its stack tracepublic static SimpleLog getLog(Class c)
c
- the name of the class that will be used as the name for the logger to retrieve.public void info(Object mesg)
mesg
- the message to logpublic void info(Object mesg1, Object mesg2)
mesg1
- the first message to logmesg2
- the second message to logpublic void info(Object mesg, Throwable t)
mesg
- the message to logt
- the exception to log, including its stack tracepublic boolean isDebugEnabled()
public boolean isErrorEnabled()
public boolean isFatalEnabled()
public boolean isInfoEnabled()
public boolean isWarnEnabled()
public void warn(Object mesg)
mesg
- the message to logpublic void warn(Object mesg1, Object mesg2)
mesg1
- the first message to logmesg2
- the second message to logCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.