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 | Class and Description |
---|---|
static class |
LoggingUtils.LogLevel |
Modifier and Type | Method and Description |
---|---|
static Level |
getEffectiveLogLevel(Logger logger) |
static Logger |
getLogger(Class<?> klass)
Returns an appropriate logger to be used by class klass.
|
static void |
loadGlobalLoggingConfig(CommonPaths paths)
Deprecated.
this is done via the launcher now
|
static void |
loadUserLoggingConfig(CommonPaths paths)
Deprecated.
this is done via the launcher now
|
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)
@Deprecated public static void loadGlobalLoggingConfig(CommonPaths paths) throws InvalidConfigurationException
InvalidConfigurationException
@Deprecated public static void loadUserLoggingConfig(CommonPaths paths) throws InvalidConfigurationException
InvalidConfigurationException
Copyright © 2017. All rights reserved.