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 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
|
static void |
useDevelConsole()
Ensures log messages are written to the console as well
|
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 useDevelConsole()
public static void loadGlobalLoggingConfig() throws InvalidConfigurationException
InvalidConfigurationException
public static void loadUserLoggingConfig() throws InvalidConfigurationException
InvalidConfigurationException
Copyright © 2012. All Rights Reserved.