public class SimpleLog
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object mesg)
Logs the message object with the DEBUG level
|
void |
debug(java.lang.Object mesg1, java.lang.Object mesg2)
Logs the two message objects with the DEBUG level
|
void |
debug(java.lang.Object mesg, java.lang.Throwable t)
Logs the message object with the DEBUG level including the stack trace of the Throwable t passed as parameter
|
void |
error(java.lang.Object mesg)
Logs the message object with the ERROR level
|
void |
error(java.lang.Object mesg, java.lang.Throwable t)
Logs the message object with the ERROR level including the stack trace of the Throwable t passed as parameter
|
void |
fatal(java.lang.Object mesg)
Logs the message object with the FATAL level
|
void |
fatal(java.lang.Object mesg, java.lang.Throwable t)
Logs the message object with the FATAL level including the stack trace of the Throwable t passed as parameter
|
static SimpleLog |
getLog(java.lang.Class c)
Returns the SimpleLog logger for the given class
|
void |
info(java.lang.Object mesg)
Logs the message object with the INFO level
|
void |
info(java.lang.Object mesg1, java.lang.Object mesg2)
Logs the two message objects with the INFO level
|
void |
info(java.lang.Object mesg, java.lang.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(java.lang.Object mesg)
Logs the message object with the WARN level
|
void |
warn(java.lang.Object mesg1, java.lang.Object mesg2)
Logs the two message objects with the WARN level
|
void |
warn(java.lang.Object mesg, java.lang.Throwable t)
Logs the message object with the WARN level including the stack trace of the Throwable t passed as parameter
|
public void debug(java.lang.Object mesg)
mesg
- the message to logpublic void debug(java.lang.Object mesg1, java.lang.Object mesg2)
mesg1
- the first message to logmesg2
- the second message to logpublic void debug(java.lang.Object mesg, java.lang.Throwable t)
mesg
- the message to logt
- the exception to log, including its stack tracepublic void error(java.lang.Object mesg)
mesg
- the message to logpublic void error(java.lang.Object mesg, java.lang.Throwable t)
mesg
- the message to logt
- the exception to log, including its stack tracepublic void fatal(java.lang.Object mesg)
mesg
- the message to logpublic void fatal(java.lang.Object mesg, java.lang.Throwable t)
mesg
- the message to logt
- the exception to log, including its stack tracepublic static SimpleLog getLog(java.lang.Class c)
c
- the name of the class that will be used as the name for the logger to retrieve.public void info(java.lang.Object mesg)
mesg
- the message to logpublic void info(java.lang.Object mesg1, java.lang.Object mesg2)
mesg1
- the first message to logmesg2
- the second message to logpublic void info(java.lang.Object mesg, java.lang.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(java.lang.Object mesg)
mesg
- the message to logpublic void warn(java.lang.Object mesg1, java.lang.Object mesg2)
mesg1
- the first message to logmesg2
- the second message to logpublic void warn(java.lang.Object mesg, java.lang.Throwable t)
mesg
- the message to logt
- the exception to log, including its stack traceCopyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.