public final class LogbackTools extends Object
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
|
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 © 2005–2019 Open Microscopy Environment. All rights reserved.