public interface Log
Modifier and Type | Field and Description |
---|---|
static String |
REPLACE_TOKEN
The token to replace with the arguments to the log message.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
Logs a message at the
DEBUG level. |
void |
debug(String template,
Object... args)
Logs a message at the DEBUG level.
|
void |
debug(Throwable thrown,
String template,
Object... args)
Logs a message at the DEBUG level.
|
void |
error(String message)
Logs a message at the
ERROR level. |
void |
error(String template,
Object... args)
Logs a message at the ERROR level.
|
void |
error(Throwable thrown,
String template,
Object... args)
Logs a message at the ERROR level.
|
void |
info(String message)
Logs a message at the
Level.INFO level. |
void |
info(String template,
Object... args)
Logs a message at the INFO level.
|
void |
info(Throwable thrown,
String template,
Object... args)
Logs a message at the INFO level.
|
void |
log(Level level,
String message)
Logs a message at the specified level.
|
void |
log(Level level,
String template,
Object... args)
Logs a message at the specified level.
|
void |
log(Level level,
Throwable thrown,
String template,
Object... args)
Logs a message at the specified level.
|
void |
warn(String message)
Logs a message at the
Level.WARNING level. |
void |
warn(String template,
Object... args)
Logs a message at the WARNING level.
|
void |
warn(Throwable thrown,
String template,
Object... args)
Logs a message at the WARNING level.
|
static final String REPLACE_TOKEN
void debug(String message)
DEBUG
level.message
- The message to log.void debug(String template, Object... args)
template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.void debug(Throwable thrown, String template, Object... args)
thrown
- The exception associated with the log message.template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.void error(String message)
ERROR
level.message
- The message to log.void error(String template, Object... args)
template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.void error(Throwable thrown, String template, Object... args)
thrown
- The exception associated with the log message.template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.void info(String message)
Level.INFO
level.message
- The message to log.void info(String template, Object... args)
template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.void info(Throwable thrown, String template, Object... args)
thrown
- The exception associated with the log message.template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.void log(Level level, String message)
level
- The logging level for the message.message
- The message to log.void log(Level level, String template, Object... args)
level
- The logging level for the message.template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.void log(Level level, Throwable thrown, String template, Object... args)
level
- The logging level for the message.thrown
- The exception associated with the log message.template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.void warn(String message)
Level.WARNING
level.message
- The message to log.void warn(String template, Object... args)
template
- The message template to log.args
- The arguments to replace the {}
entries in the
template.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.