- All Known Implementing Classes:
PropertyLogContextConfigurator
public interface LogContextConfigurator
A configurator for a log context. A log context configurator should set up all the log categories,
handlers, formatters, filters, attachments, and other constructs as specified by the configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LogContextConfiguratorA constant representing an empty configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(LogContext logContext, InputStream inputStream) Configure the given log context according to this configurator's policy.
-
Field Details
-
EMPTY
A constant representing an empty configuration. The configurator does nothing.
-
-
Method Details
-
configure
Configure the given log context according to this configurator's policy. If a configuration stream was provided, that is passed in to this method to be used or ignored. The stream should remain open after this method is called.- Parameters:
logContext- the log context to configure (notnull)inputStream- the input stream that was requested to be used, ornullif none was provided
-