public interface Logger
A lightweight wrapper around a logging API, if available.
We only support methods with Java varargs and expect, that logging calls are not time critical.
All log messages support SLF4j-style placeholders for arguments. (See also:
http://www.slf4j.org/manual.html) You can use a {}
(opening curly brace
immediatly followed by a closing one) in the message which gets replaced by
the next argument. To much placeholders will be left as is. Arguments not
belonging to a placeholder are ignored. If the last argument is a
Throwable
, it will be not treated as argument for placeholders but as
cause of the log message (and will be logged specially).
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg,
Object... args) |
void |
error(String msg,
Object... args) |
void |
info(String msg,
Object... args) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
trace(String msg,
Object... args) |
void |
warn(String msg,
Object... args) |
Copyright © 2019. All rights reserved.