Package-level declarations

Introduces a logging backend and dependent entities.

See also

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

Original Java code of Google Flogger

Types

Link copied to clipboard
public class BaseMessageFormatter extends MessageBuilder<T> implements ParameterVisitor
The default formatter for log messages and arguments.
Link copied to clipboard
public enum FormatChar
An enum representing the printf-like formatting characters that must be supported by all logging backends.
Link copied to clipboard
public final class FormatOptions
A structured representation of formatting options compatible with printf style formatting.
Link copied to clipboard
public enum FormatType
The general formatting type of any one of the predefined FormatChar instances.
Link copied to clipboard
Formats key/value pairs as a human readable string on the end of log statements.
Link copied to clipboard
public interface LogData
A backend API for determining metadata associated with a log statement.
Link copied to clipboard
public abstract class LoggerBackend
Interface for all logger backends.
Link copied to clipboard
public class LoggingException extends RuntimeException
Exception thrown when a log statement cannot be emitted correctly.
Link copied to clipboard
public abstract class LogMessageFormatter
API for formatting Flogger log messages from logData and scoped metadata.
Link copied to clipboard
public final class MessageUtils
Static utilities for classes wishing to implement their own log message formatting.
Link copied to clipboard
public abstract class Metadata
A sequence of metadata key/value pairs which can be associated to a log statement, either directly via methods in the fluent API, of as part of a scoped logging context.
Link copied to clipboard
public abstract class MetadataHandler<C>
Callback API for logger backend implementations to handle metadata keys/values.
Link copied to clipboard
public final class MetadataKeyValueHandlers
A helper class providing the default callbacks and handlers for processing metadata as key/value pairs.
Link copied to clipboard
public abstract class MetadataProcessor
Processor combining scope and log-site metadata into a single view.
Link copied to clipboard
public abstract class Platform
Platform abstraction layer required to allow fluent logger implementations to work on differing Java platforms (such as Android or GWT).
Link copied to clipboard
public final class SimpleMessageFormatter
Helper class for formatting LogData as text.
Link copied to clipboard
public final class TemplateContext
A context object for templates that allows caches to validate existing templates or create new ones.