|
XNIO version 1.0.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.xnio.log.Logger
public final class Logger
A logger that may be used by XNIO applications.
Field Summary | |
---|---|
static Level |
DEBUG
The DEBUG log level. |
static Level |
ERROR
The ERROR log level. |
static Level |
INFO
The INFO log level. |
static Level |
TRACE
The TRACE log level. |
static Level |
WARN
The WARN log level. |
Method Summary | |
---|---|
void |
debug(String msg)
Log a message at debug level. |
void |
debug(String msg,
Object... params)
Log a message at debug level. |
void |
debug(Throwable ex,
String msg,
Object... params)
Log a message at debug level with an exception. |
void |
error(String msg)
Log a message at error level. |
void |
error(String msg,
Object... params)
Log a message at error level. |
void |
error(Throwable ex,
String msg,
Object... params)
Log a message at error level with an exception. |
static Logger |
getLogger(Class claxx)
Get a logger whose name is the same as the fully qualified name of the given class. |
static Logger |
getLogger(String name)
Get a logger with the given name. |
void |
info(String msg)
Log a message at info level. |
void |
info(String msg,
Object... params)
Log a message at info level. |
void |
info(Throwable ex,
String msg,
Object... params)
Log a message at info level with an exception. |
boolean |
isTrace()
Test to see if the logger would log trace messages. |
void |
trace(String msg)
Log a message at trace level. |
void |
trace(String msg,
Object... params)
Log a message at trace level. |
void |
trace(Throwable ex,
String msg,
Object... params)
Log a message at trace level with an exception. |
void |
warn(String msg)
Log a message at warn level. |
void |
warn(String msg,
Object... params)
Log a message at warn level. |
void |
warn(Throwable ex,
String msg,
Object... params)
Log a message at warn level with an exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Level TRACE
public static final Level DEBUG
public static final Level INFO
public static final Level WARN
public static final Level ERROR
Method Detail |
---|
public static Logger getLogger(String name)
name
- the logger name
public static Logger getLogger(Class claxx)
claxx
- the class name
public boolean isTrace()
true
if trace messages may be loggedpublic void error(String msg)
msg
- the message to logpublic void error(Throwable ex, String msg, Object... params)
String.format(String, Object[])
.
ex
- the exception to logmsg
- the message to logparams
- the message parameterspublic void error(String msg, Object... params)
String.format(String, Object[])
.
msg
- the message to logparams
- the message parameterspublic void warn(String msg)
msg
- the message to logpublic void warn(Throwable ex, String msg, Object... params)
String.format(String, Object[])
.
ex
- the exception to logmsg
- the message to logparams
- the message parameterspublic void warn(String msg, Object... params)
String.format(String, Object[])
.
msg
- the message to logparams
- the message parameterspublic void info(String msg)
msg
- the message to logpublic void info(Throwable ex, String msg, Object... params)
String.format(String, Object[])
.
ex
- the exception to logmsg
- the message to logparams
- the message parameterspublic void info(String msg, Object... params)
String.format(String, Object[])
.
msg
- the message to logparams
- the message parameterspublic void debug(String msg)
msg
- the message to logpublic void debug(Throwable ex, String msg, Object... params)
String.format(String, Object[])
.
ex
- the exception to logmsg
- the message to logparams
- the message parameterspublic void debug(String msg, Object... params)
String.format(String, Object[])
.
msg
- the message to logparams
- the message parameterspublic void trace(String msg)
msg
- the message to logpublic void trace(Throwable ex, String msg, Object... params)
String.format(String, Object[])
.
ex
- the exception to logmsg
- the message to logparams
- the message parameterspublic void trace(String msg, Object... params)
String.format(String, Object[])
.
msg
- the message to logparams
- the message parameters
|
XNIO version 1.0.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |