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:
logging.configuration system property is checkedlogging.propertiesClass#getResourceAsStream(String) is used to locate a logging.properties| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(final LogContext
the log context to configure (not logContext, final InputStream null)the input stream that was requested to be used, or inputStream)null if none was providedImplements org. |
| private static InputStream |
| PropertyLogContextConfigurator | back to summary |
|---|---|
| public PropertyLogContextConfigurator() | |
| configure | back to summary |
|---|---|
| public void configure(final LogContext logContext, final InputStream inputStream) Implements org. Doc from org. 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.
| |
| findConfiguration | back to summary |
|---|---|
| private static InputStream findConfiguration() | |