public final class LogConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_DEBUG
Debug logging configuration.
|
static java.lang.String |
CONFIG_DEFAULT
Default logging configuration.
|
static java.lang.String |
CONFIG_VERBOSE
Verbose logging configuration..
|
| Constructor and Description |
|---|
LogConfig()
Apply initial logging configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
applyConfig(java.lang.String config)
Apply a logging configuration.
|
static long |
configTime()
Get the timestamp the currently active logging configuration was applied.
|
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()
To invoke this constructor during JDK logging initialization the
java.util.logging.config.class system property must point to this
class.
public static boolean applyConfig(java.lang.String config)
The config parameter names the file or resource containing the logging configuration. First we try to read the config from a file based upon the current working directory. If this fails we try to read it as a resource.
config - The configuration file or resource to apply.public static long configTime()