public final class LoggingUtils extends Object
It would be good idea to call LogManager.readConfiguration() with a
properties file that sets an appropriate value for ".level"
| Modifier and Type | Method and Description |
|---|---|
static void |
disableConsoleLogging() |
static void |
enableConsoleLogging()
Ensures log messages are written to the console as well
|
static Logger |
getLogger(Class<?> klass)
Returns an appropriate logger to be used by class klass.
|
static void |
loadGlobalLoggingConfig() |
static void |
loadUserLoggingConfig() |
static void |
setGlobalLogLevel(Level level)
Set the log level for the logger at the root of the "com.redhat.thermostat" namespace
|
public static void setGlobalLogLevel(Level level)
level - the minimum level at which logging statements should appear in the logspublic static Logger getLogger(Class<?> klass)
public static void enableConsoleLogging()
public static void disableConsoleLogging()
public static void loadGlobalLoggingConfig()
throws InvalidConfigurationException
InvalidConfigurationExceptionpublic static void loadUserLoggingConfig()
throws InvalidConfigurationException
InvalidConfigurationExceptionCopyright © 2013. All Rights Reserved.