public class Log
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
debug()
Check if trace level is enabled
|
void |
debug(java.lang.String message,
java.lang.Object... args)
Write a debug message - Use message as a format string for the other
args.
|
void |
debug(java.lang.Throwable ex,
java.lang.String message,
java.lang.Object... args)
Log an exception then a debug level message - Use message as a format
string for the other args.
|
void |
error(java.lang.String message,
java.lang.Object... args)
Log an error level message - Use message as a format string for the other
args.
|
void |
error(java.lang.Throwable ex,
java.lang.String message,
java.lang.Object... args)
Log an exception then a error level message - Use message as a format
string for the other args.
|
static Log |
getLog(java.lang.Class<?> clazz)
Get a logger by class
|
static Log |
getLog(java.lang.String className)
Get a logger by name
|
boolean |
info()
Check if info level is enabled
|
void |
info(java.lang.String message,
java.lang.Object... args)
Log an info level message - Use message as a format string for the other
args.
|
void |
info(java.lang.Throwable ex,
java.lang.String message,
java.lang.Object... args)
Log an exception then an info level message - Use message as a format
string for the other args.
|
boolean |
trace()
Check if trace level is enabled
|
void |
trace(java.lang.String message,
java.lang.Object... args)
Log a trace level message - Use message as a format string for the other
args.
|
void |
trace(java.lang.Throwable ex,
java.lang.String message,
java.lang.Object... args)
Log an exception then a trace level message - Use message as a format
string for the other args.
|
void |
warn(java.lang.String message,
java.lang.Object... args)
Log a warn level message - Use message as a format string for the other
args.
|
void |
warn(java.lang.Throwable ex,
java.lang.String message,
java.lang.Object... args)
Log an exception then a warn level message - Use message as a format
string for the other args.
|
public void trace(java.lang.String message, java.lang.Object... args)
message
- args
- public boolean trace()
public void trace(java.lang.Throwable ex, java.lang.String message, java.lang.Object... args)
message
- args
- public boolean debug()
public void debug(java.lang.String message, java.lang.Object... args)
message
- args
- public void debug(java.lang.Throwable ex, java.lang.String message, java.lang.Object... args)
message
- args
- public void info(java.lang.String message, java.lang.Object... args)
message
- args
- public void info(java.lang.Throwable ex, java.lang.String message, java.lang.Object... args)
message
- args
- public boolean info()
public void warn(java.lang.String message, java.lang.Object... args)
message
- args
- public void warn(java.lang.Throwable ex, java.lang.String message, java.lang.Object... args)
message
- args
- public void error(java.lang.String message, java.lang.Object... args)
message
- args
- public void error(java.lang.Throwable ex, java.lang.String message, java.lang.Object... args)
message
- args
- public static Log getLog(java.lang.String className)
clazz
- public static Log getLog(java.lang.Class<?> clazz)
clazz
-