StructuredLogFormatterFactory

Factory that can be used to create a fully instantiated StructuredLogFormatter for either a common format or a fully-qualified class name.

Author

Moritz Halbritter

Phillip Webb

Since

3.4.0

Parameters

<E>

the log even type

See also

Constructors

Link copied to clipboard
constructor(logEventType: Class<E>, environment: Environment, availableParameters: Consumer<Instantiator.AvailableParameters>, commonFormatters: Consumer<StructuredLogFormatterFactory.CommonFormatters<E>>)
Create a new StructuredLogFormatterFactory instance.

Types

Link copied to clipboard
Link copied to clipboard
open class CommonFormatters<E>
Callback used for configure the CommonFormatterFactory to use for a given CommonStructuredLogFormat.

Functions

Link copied to clipboard
open fun get(format: String): StructuredLogFormatter<E>
Get a new StructuredLogFormatter instance for the specified format.