|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.xenqtt.Log
public final class Log
Provides disparate logging methods for use within xenqtt. The Log class is able to detect other logging implementations and, should they be present
and available, use those by default. Should other logging implementations not be available the fallback logging mechanism will be used.
At present the fallback logging mechanism writes all trace, debug, and info logging events to standard out and all warn,
error, and fatal logging events to standard error.
| Method Summary | |
|---|---|
static void |
debug(String message,
Object... parameters)
Log a message at the DEBUG log level, if possible. |
static void |
error(String message,
Object... parameters)
Log a message at the ERROR log level, if possible. |
static void |
error(Throwable t,
String message,
Object... parameters)
Log a message at the ERROR log level, if possible. |
static void |
fatal(String message,
Object... parameters)
Log a message at the FATAL log level. |
static void |
fatal(Throwable t,
String message,
Object... parameters)
Log a message at the FATAL log level. |
static void |
info(String message,
Object... parameters)
Log a message at the INFO log level, if possible. |
static void |
trace(String message,
Object... parameters)
Log a message at the TRACE log level, if possible. |
static void |
warn(String message,
Object... parameters)
Log a message at the WARN log level, if possible. |
static void |
warn(Throwable t,
String message,
Object... parameters)
Log a message at the WARN log level, if possible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void trace(String message,
Object... parameters)
message - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
public static void debug(String message,
Object... parameters)
message - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
public static void info(String message,
Object... parameters)
message - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
public static void warn(String message,
Object... parameters)
message - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
public static void warn(Throwable t,
String message,
Object... parameters)
t - A Throwable that was thrown at some point that is being logged with the message and parametersmessage - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
public static void error(String message,
Object... parameters)
message - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
public static void error(Throwable t,
String message,
Object... parameters)
t - A Throwable that was thrown at some point that is being logged with the message and parametersmessage - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
public static void fatal(String message,
Object... parameters)
message - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
public static void fatal(Throwable t,
String message,
Object... parameters)
t - A Throwable that was thrown at some point that is being logged with the message and parametersmessage - The log message to emitparameters - The parameters to use in replacing format specifiers in the specified message. This can be omitted if no such specifiers exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||