|
XNIO API 2.1.0.CR2 | |||||||||
| 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(String msg,
Object param1)
Log a message at debug level. |
void |
debug(String msg,
Object param1,
Object param2)
Log a message at debug level. |
void |
debug(String msg,
Object param1,
Object param2,
Object param3)
Log a message at debug level. |
void |
debug(Throwable ex,
String msg,
Object... params)
Log a message at debug level with an exception. |
void |
debug(Throwable ex,
String msg,
Object param1)
Log a message at debug level with an exception. |
void |
debug(Throwable ex,
String msg,
Object param1,
Object param2)
Log a message at debug level with an exception. |
void |
debug(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
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(String msg,
Object param1)
Log a message at error level. |
void |
error(String msg,
Object param1,
Object param2)
Log a message at error level. |
void |
error(String msg,
Object param1,
Object param2,
Object param3)
Log a message at error level. |
void |
error(Throwable ex,
String msg,
Object... params)
Log a message at error level with an exception. |
void |
error(Throwable ex,
String msg,
Object param1)
Log a message at error level with an exception. |
void |
error(Throwable ex,
String msg,
Object param1,
Object param2)
Log a message at error level with an exception. |
void |
error(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
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(String msg,
Object param1)
Log a message at info level. |
void |
info(String msg,
Object param1,
Object param2)
Log a message at info level. |
void |
info(String msg,
Object param1,
Object param2,
Object param3)
Log a message at info level. |
void |
info(Throwable ex,
String msg,
Object... params)
Log a message at info level with an exception. |
void |
info(Throwable ex,
String msg,
Object param1)
Log a message at info level with an exception. |
void |
info(Throwable ex,
String msg,
Object param1,
Object param2)
Log a message at info level with an exception. |
void |
info(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
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(String msg,
Object param1)
Log a message at trace level. |
void |
trace(String msg,
Object param1,
Object param2)
Log a message at trace level. |
void |
trace(String msg,
Object param1,
Object param2,
Object param3)
Log a message at trace level. |
void |
trace(Throwable ex,
String msg,
Object... params)
Log a message at trace level with an exception. |
void |
trace(Throwable ex,
String msg,
Object param1)
Log a message at trace level with an exception. |
void |
trace(Throwable ex,
String msg,
Object param1,
Object param2)
Log a message at trace level with an exception. |
void |
trace(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
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(String msg,
Object param1)
Log a message at warn level. |
void |
warn(String msg,
Object param1,
Object param2)
Log a message at warn level. |
void |
warn(String msg,
Object param1,
Object param2,
Object param3)
Log a message at warn level. |
void |
warn(Throwable ex,
String msg,
Object... params)
Log a message at warn level with an exception. |
void |
warn(Throwable ex,
String msg,
Object param1)
Log a message at warn level with an exception. |
void |
warn(Throwable ex,
String msg,
Object param1,
Object param2)
Log a message at warn level with an exception. |
void |
warn(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
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 log
public void error(Throwable ex,
String msg,
Object... params)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparams - the message parameters
public void error(Throwable ex,
String msg,
Object param1)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameter
public void error(Throwable ex,
String msg,
Object param1,
Object param2)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void error(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameter
public void error(String msg,
Object... params)
String.format(String, Object[]).
msg - the message to logparams - the message parameters
public void error(String msg,
Object param1)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameter
public void error(String msg,
Object param1,
Object param2)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void error(String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameterpublic void warn(String msg)
msg - the message to log
public void warn(Throwable ex,
String msg,
Object... params)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparams - the message parameters
public void warn(Throwable ex,
String msg,
Object param1)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameter
public void warn(Throwable ex,
String msg,
Object param1,
Object param2)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void warn(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameter
public void warn(String msg,
Object... params)
String.format(String, Object[]).
msg - the message to logparams - the message parameters
public void warn(String msg,
Object param1)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameter
public void warn(String msg,
Object param1,
Object param2)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void warn(String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameterpublic void info(String msg)
msg - the message to log
public void info(Throwable ex,
String msg,
Object... params)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparams - the message parameters
public void info(Throwable ex,
String msg,
Object param1)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameter
public void info(Throwable ex,
String msg,
Object param1,
Object param2)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void info(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameter
public void info(String msg,
Object... params)
String.format(String, Object[]).
msg - the message to logparams - the message parameters
public void info(String msg,
Object param1)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameter
public void info(String msg,
Object param1,
Object param2)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void info(String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameterpublic void debug(String msg)
msg - the message to log
public void debug(Throwable ex,
String msg,
Object... params)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparams - the message parameters
public void debug(Throwable ex,
String msg,
Object param1)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameter
public void debug(Throwable ex,
String msg,
Object param1,
Object param2)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void debug(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameter
public void debug(String msg,
Object... params)
String.format(String, Object[]).
msg - the message to logparams - the message parameters
public void debug(String msg,
Object param1)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameter
public void debug(String msg,
Object param1,
Object param2)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void debug(String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameterpublic void trace(String msg)
msg - the message to log
public void trace(Throwable ex,
String msg,
Object... params)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparams - the message parameters
public void trace(Throwable ex,
String msg,
Object param1)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameter
public void trace(Throwable ex,
String msg,
Object param1,
Object param2)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void trace(Throwable ex,
String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
ex - the exception to logmsg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameter
public void trace(String msg,
Object... params)
String.format(String, Object[]).
msg - the message to logparams - the message parameters
public void trace(String msg,
Object param1)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameter
public void trace(String msg,
Object param1,
Object param2)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameter
public void trace(String msg,
Object param1,
Object param2,
Object param3)
String.format(String, Object[]).
msg - the message to logparam1 - the first message parameterparam2 - the second message parameterparam3 - the third message parameter
|
XNIO API 2.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||