public final class Logger extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NAME_PARENT_LOGGER
The parent logger name.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
Log a message at the DEBUG level.
|
void |
debug(String format,
Object... arguments)
Log a message at the DEBUG level.
|
void |
error(String message)
Log a message at the ERROR level.
|
void |
error(String format,
Object... arguments)
Log a message at the ERROR level.
|
static Logger |
get(Class<?> context)
Returns a logger for the given context class.
|
void |
info(String message)
Log a message at the INFO level.
|
void |
info(String format,
Object... arguments)
Log a message at the INFO level.
|
boolean |
isDebugEnabled()
Returns whether or not DEBUG level messages are enabled.
|
boolean |
isErrorEnabled()
Returns whether or not ERROR level messages are enabled.
|
boolean |
isInfoEnabled()
Returns whether or not INFO level messages are enabled.
|
boolean |
isTraceEnabled()
Returns whether or not TRACE level messages are enabled.
|
boolean |
isWarnEnabled()
Returns whether or not WARN level messages are enabled.
|
void |
trace(String message)
Log a message at the TRACE level.
|
void |
trace(String format,
Object... arguments)
Log a message at the TRACE level.
|
void |
warn(String message)
Log a message at the WARN level.
|
void |
warn(String format,
Object... arguments)
Log a message at the WARN level.
|
public static final String NAME_PARENT_LOGGER
public static Logger get(Class<?> context)
context
- the context classpublic boolean isTraceEnabled()
true
if TRACE level messages are enabled, otherwise false
public boolean isDebugEnabled()
true
if DEBUG level messages are enabled, otherwise false
public boolean isInfoEnabled()
true
if INFO level messages are enabled, otherwise false
public boolean isWarnEnabled()
true
if WARN level messages are enabled, otherwise false
public boolean isErrorEnabled()
true
if ERROR level messages are enabled, otherwise false
public void trace(String message)
message
- the messagepublic void trace(String format, Object... arguments)
format
- the message format, which can contain argument placeholders ({}
)arguments
- message argumentspublic void debug(String message)
message
- the messagepublic void debug(String format, Object... arguments)
format
- the message format, which can contain argument placeholders ({}
)arguments
- message argumentspublic void info(String message)
message
- the messagepublic void info(String format, Object... arguments)
format
- the message format, which can contain argument placeholders ({}
)arguments
- message argumentspublic void warn(String message)
message
- the messagepublic void warn(String format, Object... arguments)
format
- the message format, which can contain argument placeholders ({}
)arguments
- message argumentspublic void error(String message)
message
- the messageCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.