Class PropertyLogContextConfigurator

java.lang.Object
org.jboss.logmanager.configuration.PropertyLogContextConfigurator
All Implemented Interfaces:
LogContextConfigurator

public class PropertyLogContextConfigurator extends Object implements LogContextConfigurator
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 Details

    • PropertyLogContextConfigurator

      public PropertyLogContextConfigurator()
  • Method Details

    • configure

      public void configure(LogContext logContext, InputStream inputStream)
      Description copied from interface: LogContextConfigurator
      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.
      Specified by:
      configure in interface LogContextConfigurator
      Parameters:
      logContext - the log context to configure (not null)
      inputStream - the input stream that was requested to be used, or null if none was provided