Interface Logger

All Superinterfaces:
Journalist
All Known Implementing Classes:
AggregatedLogger, CachedLogger, DefaultLogger, InMemoryLogger, MultichannelCachedLogger, PrintStreamLogger, PublisherLogger

public interface Logger extends Journalist
Proxy interface for dynamic logging handler
  • Method Details

    • fatal

      default Logger fatal(Object message, Object... arguments)
      Log the given message to Channel.FATAL channel
      Parameters:
      message - the message to log
      arguments - arguments to the message
      Returns:
      the logger instance
    • error

      default Logger error(Object message, Object... arguments)
      Log the given message to Channel.ERROR channel
      Parameters:
      message - the message to log
      arguments - arguments to the message
      Returns:
      the logger instance
    • warn

      default Logger warn(Object message, Object... arguments)
      Log the given message to Channel.WARN
      Parameters:
      message - the message to log
      arguments - arguments to the message
      Returns:
      the logger instance
    • info

      default Logger info(Object message, Object... arguments)
      Log the given message to Channel.INFO
      Parameters:
      message - the message to log
      arguments - arguments to the message
      Returns:
      the logger instance
    • debug

      default Logger debug(Object message, Object... arguments)
      Log the given message to Channel.DEBUG
      Parameters:
      message - the message to log
      arguments - arguments to the message
      Returns:
      the logger instance
    • trace

      default Logger trace(Object message, Object... arguments)
      Log the given message to Channel.TRACE
      Parameters:
      message - the message to log
      arguments - arguments to the message
      Returns:
      the logger instance
    • log

      Logger log(Channel channel, Object message, Object... arguments)
      Log the given message to the provided channel
      Parameters:
      channel - the channel to log to
      message - the message to log
      arguments - arguments to the message
      Returns:
      the logger instance
    • exception

      default Logger exception(Throwable throwable)
      Log the given exception to the Channel.ERROR channel
      Parameters:
      throwable - the exception to log
      Returns:
      the logger instance
    • exception

      Logger exception(Channel channel, Throwable throwable)
      Log the given exception to the given channel
      Parameters:
      channel - the channel to log to
      throwable - the exception to log
      Returns:
      the logger instance
    • setThreshold

      Logger setThreshold(Channel threshold)
      Modify current threshold
      Parameters:
      threshold - the threshold to set
      Returns:
      the logger instance
    • toPrintStream

      PrintStream toPrintStream(Channel channel)
      Create PrintStream that will write to the current logger. Always remember about closing it after usage.
      Returns:
      the associated print stream