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(CommonPaths paths) |
static void |
loadUserLoggingConfig(CommonPaths paths) |
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(CommonPaths paths) throws InvalidConfigurationException
InvalidConfigurationException
public static void loadUserLoggingConfig(CommonPaths paths) throws InvalidConfigurationException
InvalidConfigurationException
Copyright © 2014. All Rights Reserved.