Class FloggerFacade
java.lang.Object
nl.pim16aap2.util.logging.FloggerFacade
A simple facade for Flogger's
FluentLogger to use slf4j log level names.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.flogger.FluentLogger.Apiat(org.slf4j.event.Level level) SeeFluentLogger.at(java.util.logging.Level).com.google.common.flogger.FluentLogger.ApiatDebug()A convenience method for logging at the DEBUG level.com.google.common.flogger.FluentLogger.ApiatError()A convenience method for logging at the ERROR level.com.google.common.flogger.FluentLogger.ApiatInfo()A convenience method for logging at the INFO level.com.google.common.flogger.FluentLogger.ApiatTrace()A convenience method for logging at the TRACE level.com.google.common.flogger.FluentLogger.ApiatWarn()A convenience method for logging at the WARN level.
-
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) SeeFluentLogger.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.
-