Log Context
The base context for a logging statement, which implements the base logging API.
This class is an implementation of the base FloggerApi interface and acts as a holder for any state applied to the log statement during the fluent call sequence. The lifecycle of a logging context is very short; it is created by a logger, usually in response to a call to the at method, and normally lasts only as long as the log statement.
This class should not be visible to normal users of the logging API and it is only needed when extending the API to add more functionality. In order to extend the logging API and add methods to the fluent call chain, the LoggingApi interface should be extended to add any new methods, and this class should be extended to implement them. A new logger class will then be needed to return the extended context.
Logging contexts are not thread safe.
See also
Original Java code of Google Flogger
Constructors
Types
Properties
Functions
null if not given.null if the statement does not require formatting (in which case the message to be logged can be determined by calling getLiteralArgument).n.key.true for this log statement in a structured way that is accessible to logger backends.