AbstractLogger

public abstract class AbstractLogger<API extends FloggerApi<API>>

Base class for the fluent logger API. This class is a factory for instances of a fluent logging API, used to build log statements via method chaining.

Parameters

<API>

the logging API provided by this logger.

See also

<a href="https://github.com/google/flogger/blob/cb9e836a897d36a78309ee8badf5cad4e6a2d3d8/api/src/main/java/com/google/common/flogger/AbstractLogger.java">

Original Java code of Google Flogger

Inheritors

Constructors

Link copied to clipboard
protected void AbstractLogger(LoggerBackend backend)
Constructs a new logger for the specified backend.

Functions

Link copied to clipboard
public abstract API at(Level level)
Returns a fluent logging API appropriate for the specified log level.
Link copied to clipboard
public final API atConfig()
A convenience method for at(CONFIG).
Link copied to clipboard
public final API atFine()
A convenience method for at(FINE).
Link copied to clipboard
public final API atFiner()
A convenience method for at(FINER).
Link copied to clipboard
public final API atFinest()
A convenience method for at(FINEST).
Link copied to clipboard
public final API atInfo()
A convenience method for at(INFO).
Link copied to clipboard
public final API atSevere()
A convenience method for at(SEVERE).
Link copied to clipboard
public final API atWarning()
A convenience method for at(WARNING).
Link copied to clipboard
protected String getName()
Returns the non-null name of this logger (Flogger does not currently support anonymous loggers).
Link copied to clipboard
protected final boolean isLoggable(Level level)
Returns whether the given level is enabled for this logger.