Class FloggerFacade

java.lang.Object
nl.pim16aap2.util.logging.FloggerFacade

public final class FloggerFacade extends Object
A simple facade for Flogger's FluentLogger to use slf4j log level names.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FloggerFacade(com.google.common.flogger.FluentLogger flogger)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.flogger.FluentLogger.Api
    at(org.slf4j.event.Level level)
    See FluentLogger.at(java.util.logging.Level).
    com.google.common.flogger.FluentLogger.Api
    A convenience method for logging at the DEBUG level.
    com.google.common.flogger.FluentLogger.Api
    A convenience method for logging at the ERROR level.
    com.google.common.flogger.FluentLogger.Api
    A convenience method for logging at the INFO level.
    com.google.common.flogger.FluentLogger.Api
    A convenience method for logging at the TRACE level.
    com.google.common.flogger.FluentLogger.Api
    A convenience method for logging at the WARN level.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FloggerFacade

      public FloggerFacade(com.google.common.flogger.FluentLogger flogger)
  • Method Details

    • at

      public com.google.common.flogger.FluentLogger.Api at(org.slf4j.event.Level level)
      See FluentLogger.at(java.util.logging.Level).
      Parameters:
      level - The log level to use.
      Returns:
      The next step in the fluent API for logging at the given level.
    • atError

      public com.google.common.flogger.FluentLogger.Api atError()
      A convenience method for logging at the ERROR level.
      Returns:
      The next step in the fluent API for logging at the ERROR level.
    • atWarn

      public com.google.common.flogger.FluentLogger.Api atWarn()
      A convenience method for logging at the WARN level.
      Returns:
      The next step in the fluent API for logging at the WARN level.
    • atInfo

      public com.google.common.flogger.FluentLogger.Api atInfo()
      A convenience method for logging at the INFO level.
      Returns:
      The next step in the fluent API for logging at the INFO level.
    • atDebug

      public com.google.common.flogger.FluentLogger.Api atDebug()
      A convenience method for logging at the DEBUG level.
      Returns:
      The next step in the fluent API for logging at the DEBUG level.
    • atTrace

      public com.google.common.flogger.FluentLogger.Api atTrace()
      A convenience method for logging at the TRACE level.
      Returns:
      The next step in the fluent API for logging at the TRACE level.