public interface Logger
Modifier and Type | Field and Description |
---|---|
static String |
LEVEL_DEBUG |
static String |
LEVEL_ERROR |
static String |
LEVEL_FATAL |
static String |
LEVEL_INFO |
static String |
LEVEL_OFF |
static String |
LEVEL_TRACE |
static String |
LEVEL_WARN |
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg,
Object... args)
log debug message
|
void |
error(String msg,
Exception err,
Object... args)
log warn message
|
void |
error(String msg,
Object... args)
log warn message
|
String |
getLevel()
return the level for the logger
|
String |
getName()
return the name for the logger
|
void |
info(String msg,
Object... args)
log info message
|
void |
warn(String msg,
Object... args)
log warn message
|
static final String LEVEL_OFF
static final String LEVEL_DEBUG
static final String LEVEL_WARN
static final String LEVEL_ERROR
static final String LEVEL_INFO
static final String LEVEL_FATAL
static final String LEVEL_TRACE
String getName()
String getLevel()
void debug(String msg, Object... args)
msg
- the message or message format to logargs
- argument for the logvoid info(String msg, Object... args)
msg
- the message or message format to logargs
- argument for the logvoid warn(String msg, Object... args)
msg
- the message or message format to logargs
- argument for the logvoid error(String msg, Object... args)
msg
- the message or message format to logargs
- argument for the logCopyright © 2018 CrafterCMS. All rights reserved.