public interface Logger
| Modifier and Type | Method and Description |
|---|---|
default Logger |
debug(String message)
Log the given message to
Channel.DEBUG |
default Logger |
error(String message)
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)
Log the given message to
Channel.FATAL channel |
default Logger |
info(String message)
Log the given message to
Channel.INFO |
Logger |
log(Channel channel,
String message)
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)
Log the given message to
Channel.TRACE |
default Logger |
warn(String message)
Log the given message to
Channel.WARN |
default Logger fatal(String message)
Channel.FATAL channelmessage - the message to logdefault Logger error(String message)
Channel.ERROR channelmessage - the message to logdefault Logger warn(String message)
Channel.WARNmessage - the message to logdefault Logger info(String message)
Channel.INFOmessage - the message to logdefault Logger debug(String message)
Channel.DEBUGmessage - the message to logdefault Logger trace(String message)
Channel.TRACEmessage - the message to logLogger log(Channel channel, String message)
channel - the channel to log tomessage - the message to logdefault 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.