public interface Logger extends Journalist
| Modifier and Type | Method and Description |
|---|---|
default Logger |
debug(String message,
Object... arguments)
Log the given message to
Channel.DEBUG |
default Logger |
error(String message,
Object... arguments)
Log the given message to
Channel.ERROR channel |
Logger |
exception(Channel channel,
Throwable throwable)
Log the given exception to the given channel
|
default Logger |
exception(Throwable throwable)
Log the given exception to the
Channel.ERROR channel |
default Logger |
fatal(String message,
Object... arguments)
Log the given message to
Channel.FATAL channel |
default Logger |
info(String message,
Object... arguments)
Log the given message to
Channel.INFO |
Logger |
log(Channel channel,
String message,
Object... arguments)
Log the given message to the provided channel
|
Logger |
setThreshold(Channel threshold)
Modify current threshold
|
PrintStream |
toPrintStream(Channel channel)
Create PrintStream that will write to the current logger.
|
default Logger |
trace(String message,
Object... arguments)
Log the given message to
Channel.TRACE |
default Logger |
warn(String message,
Object... arguments)
Log the given message to
Channel.WARN |
getLoggerdefault Logger fatal(String message, Object... arguments)
Channel.FATAL channelmessage - the message to logarguments - arguments to the messagedefault Logger error(String message, Object... arguments)
Channel.ERROR channelmessage - the message to logarguments - arguments to the messagedefault Logger warn(String message, Object... arguments)
Channel.WARNmessage - the message to logarguments - arguments to the messagedefault Logger info(String message, Object... arguments)
Channel.INFOmessage - the message to logarguments - arguments to the messagedefault Logger debug(String message, Object... arguments)
Channel.DEBUGmessage - the message to logarguments - arguments to the messagedefault Logger trace(String message, Object... arguments)
Channel.TRACEmessage - the message to logarguments - arguments to the messageLogger log(Channel channel, String message, Object... arguments)
channel - the channel to log tomessage - the message to logarguments - arguments to the messagedefault Logger exception(Throwable throwable)
Channel.ERROR channelthrowable - the exception to logLogger exception(Channel channel, Throwable throwable)
channel - the channel to log tothrowable - the exception to logLogger setThreshold(Channel threshold)
threshold - the threshold to setPrintStream toPrintStream(Channel channel)
Copyright © 2021. All rights reserved.