Builder
A fluent builder API for creating and installing new context scopes. This API should be used whenever the metadata to be added to a scope is known at the time the scope is created.
This class is intended to be used only as part of a fluent statement, and retaining a reference to a builder instance for any length of time is not recommended.
Functions
Link copied to clipboard
Calls a Callable directly within a new context installed from this builder, wrapping any checked exceptions with a RuntimeException.
Link copied to clipboard
Returns the configured log level map, or null.
Link copied to clipboard
Returns the configured context metadata, or null.
Link copied to clipboard
Installs a new context based on the state of the builder.
Link copied to clipboard
@CanIgnoreReturnValue()
Sets the log level map to be used with the context being built.
Link copied to clipboard
@CanIgnoreReturnValue()
Adds a single metadata key/value pair to the context.
Link copied to clipboard
Sets the tags to be used with the context.