public final class Logger
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.String msg)
Log a debug level message.
|
static void |
debug(java.lang.String msg,
java.lang.Throwable t)
Log a debug level message along with a throwable.
|
static void |
error(java.lang.String msg)
Log an error level message.
|
static void |
error(java.lang.String msg,
java.lang.Throwable t)
Log an error level message along with a throwable.
|
static void |
fatal(java.lang.String msg)
Log a fatal level message.
|
static void |
fatal(java.lang.String msg,
java.lang.Throwable t)
Log a fatal level message along with a throwable.
|
static void |
info(java.lang.String msg)
Log an info level message.
|
static void |
info(java.lang.String msg,
java.lang.Throwable t)
Log an info level message along with a throwable.
|
static void |
popLogContext()
Pop a log context from the stack.
|
static void |
popNDC()
Pop an item from the nested diagnostic context.
|
static void |
pushLogContext(java.lang.String context)
Push a log context onto the stack.
|
static void |
pushNDC(java.lang.String s)
Push an item onto the nested diagnostic context.
|
static void |
setLogContext(java.lang.String context)
Set the log context for this thread and all child threads.
|
static void |
trace(java.lang.String msg)
Log a trace level message.
|
static void |
trace(java.lang.String msg,
java.lang.Throwable t)
Log a trace level message along with a throwable.
|
static void |
warn(java.lang.String msg)
Log a warn level message.
|
static void |
warn(java.lang.String msg,
java.lang.Throwable t)
Log a warn level message along with a throwable.
|
public static void setLogContext(java.lang.String context)
context
- The new log context.public static void pushLogContext(java.lang.String context)
context
- The new log context.public static void popLogContext()
public static void pushNDC(java.lang.String s)
s
- The item to push.public static void popNDC()
public static void trace(java.lang.String msg)
msg
- The message to log.public static void trace(java.lang.String msg, java.lang.Throwable t)
msg
- The message to log.t
- The throwable stack trace to log.public static void debug(java.lang.String msg)
msg
- The message to log.public static void debug(java.lang.String msg, java.lang.Throwable t)
msg
- The message to log.t
- The throwable stack trace to log.public static void info(java.lang.String msg)
msg
- The message to log.public static void info(java.lang.String msg, java.lang.Throwable t)
msg
- The message to log.t
- The throwable stack trace to log.public static void warn(java.lang.String msg)
msg
- The message to log.public static void warn(java.lang.String msg, java.lang.Throwable t)
msg
- The message to log.t
- The throwable stack trace to log.public static void error(java.lang.String msg)
msg
- The message to log.public static void error(java.lang.String msg, java.lang.Throwable t)
msg
- The message to log.t
- The throwable stack trace to log.public static void fatal(java.lang.String msg)
msg
- The message to log.public static void fatal(java.lang.String msg, java.lang.Throwable t)
msg
- The message to log.t
- The throwable stack trace to log.