public final class LogbackTools extends Object
Modifier | Constructor and Description |
---|---|
private |
LogbackTools() |
Modifier and Type | Method and Description |
---|---|
static void |
enableIJLogging(boolean debug,
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender) |
static boolean |
enableLogging()
Initializes logback without an external configuration file.
|
static boolean |
isEnabled()
Checks whether logback has been enabled.
|
static void |
setRootLevel(String level)
Sets the level of the root logger
|
private static final String CALLER
public static boolean isEnabled()
enableLogging()
. The
logger context property will be used to discriminate the latter case from
other initializations.true
if logging was successfully enabledpublic static void setRootLevel(String level)
level
- A string indicating the desired level
(i.e.: ALL, DEBUG, ERROR, FATAL, INFO, OFF, WARN).public static boolean enableLogging()
true
if logging was successfully enabledpublic static void enableIJLogging(boolean debug, ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender)
Copyright © 2016 Open Microscopy Environment