Package com.reposilite.journalist
Interface Logger
- All Superinterfaces:
Journalist
- All Known Implementing Classes:
AggregatedLogger,CachedLogger,DefaultLogger,InMemoryLogger,MultichannelCachedLogger,PrintStreamLogger,PublisherLogger
Proxy interface for dynamic logging handler
-
Method Summary
Modifier and TypeMethodDescriptiondefault LoggerLog the given message toChannel.DEBUGdefault LoggerLog the given message toChannel.ERRORchannelLog the given exception to the given channeldefault LoggerLog the given exception to theChannel.ERRORchanneldefault LoggerLog the given message toChannel.FATALchanneldefault LoggerLog the given message toChannel.INFOLog the given message to the provided channelsetThreshold(Channel threshold) Modify current thresholdtoPrintStream(Channel channel) Create PrintStream that will write to the current logger.default LoggerLog the given message toChannel.TRACEdefault LoggerLog the given message toChannel.WARNMethods inherited from interface com.reposilite.journalist.Journalist
getLogger
-
Method Details
-
fatal
Log the given message toChannel.FATALchannel- Parameters:
message- the message to logarguments- arguments to the message- Returns:
- the logger instance
-
error
Log the given message toChannel.ERRORchannel- Parameters:
message- the message to logarguments- arguments to the message- Returns:
- the logger instance
-
warn
Log the given message toChannel.WARN- Parameters:
message- the message to logarguments- arguments to the message- Returns:
- the logger instance
-
info
Log the given message toChannel.INFO- Parameters:
message- the message to logarguments- arguments to the message- Returns:
- the logger instance
-
debug
Log the given message toChannel.DEBUG- Parameters:
message- the message to logarguments- arguments to the message- Returns:
- the logger instance
-
trace
Log the given message toChannel.TRACE- Parameters:
message- the message to logarguments- arguments to the message- Returns:
- the logger instance
-
log
Log the given message to the provided channel- Parameters:
channel- the channel to log tomessage- the message to logarguments- arguments to the message- Returns:
- the logger instance
-
exception
Log the given exception to theChannel.ERRORchannel- Parameters:
throwable- the exception to log- Returns:
- the logger instance
-
exception
Log the given exception to the given channel- Parameters:
channel- the channel to log tothrowable- the exception to log- Returns:
- the logger instance
-
setThreshold
Modify current threshold- Parameters:
threshold- the threshold to set- Returns:
- the logger instance
-
toPrintStream
Create PrintStream that will write to the current logger. Always remember about closing it after usage.- Returns:
- the associated print stream
-