public final class LogConfig
extends java.lang.Object
For proper initialization of the logging setup set the "java.util.logging.config.class" property to this class' name.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_DEBUG
Debug logging configuration file name.
|
static java.lang.String |
CONFIG_DEFAULT
Default logging configuration file name.
|
static java.lang.String |
CONFIG_VERBOSE
Verbose logging configuration file name.
|
| Constructor and Description |
|---|
LogConfig()
Initialize the logging system using the default configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
applyConfig(java.lang.String config)
Apply a specific logging configuration.
|
public static final java.lang.String CONFIG_DEFAULT
public static final java.lang.String CONFIG_VERBOSE
public static final java.lang.String CONFIG_DEBUG
public LogConfig()
The default configuration is determined by first checking the system property named after this package for a
configuration file name. If the property is not set the default configuration file name (CONFIG_DEFAULT)
is used.
public static void applyConfig(@Nullable java.lang.String config)
The submitted configuration name has to denote an existing file or a resource. First the method tries to read the corresponding file. If this fails it tries to read a resource with the submitted name.
config - The configuration file name or the resource name to read the configuration from.