public final class LoggingUtils
extends java.lang.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 java.util.logging.Logger |
getLogger(java.lang.Class<?> klass)
Returns an appropriate logger to be used by class klass.
|
static void |
setGlobalLogLevel(java.util.logging.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(java.util.logging.Level level)
level
- the minimum level at which logging statements should appear in the logspublic static java.util.logging.Logger getLogger(java.lang.Class<?> klass)
public static void useDevelConsole()