Top Description Constructors Methods
org.jboss.logmanager.configuration

public Class PropertyLogContextConfigurator

extends Object
implements LogContextConfigurator
Class Inheritance
All Implemented Interfaces
org.jboss.logmanager.LogContextConfigurator
Imports
java.io.IOException, .InputStream, .InputStreamReader, .Reader, java.net.URL, java.nio.charset.StandardCharsets, java.util.Iterator, .Properties, .ServiceLoader, java.util.logging.Logger, org.jboss.logmanager.Level, .LogContext, .LogContextConfigurator, .StandardOutputStreams, org.jboss.logmanager.formatters.PatternFormatter, org.jboss.logmanager.handlers.ConsoleHandler

A default log context configuration.

If the input stream is null an attempt is made to find a logging.properties file. If the file is not found, a service loader is used to find the first implementation of a LogContextConfigurator. If that fails a default ConsoleHandler is configured with the pattern %d{yyyy-MM-dd'T'HH:mm:ssXXX} %-5p [%c] (%t) %s%e%n.

Locating the logging.properties happens in the following order:

Author
James R. Perkins

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(final LogContext
the log context to configure (not null)
logContext
,
final InputStream
the input stream that was requested to be used, or null if none was provided
inputStream
)

Implements org.jboss.logmanager.LogContextConfigurator.configure.

Configure the given log context according to this configurator's policy.

private static InputStream
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PropertyLogContextConfiguratorback to summary
public PropertyLogContextConfigurator()

Method Detail

configureback to summary
public void configure(final LogContext logContext, final InputStream inputStream)

Implements org.jboss.logmanager.LogContextConfigurator.configure.

Doc from org.jboss.logmanager.LogContextConfigurator.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:LogContext

the log context to configure (not null)

inputStream:InputStream

the input stream that was requested to be used, or null if none was provided

Annotations
@Override
findConfigurationback to summary
private static InputStream findConfiguration()