public final class Log4jTools extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
enableLogging()
Attempts to enable SLF4J logging via log4j
without an external configuration file.
|
static boolean |
isEnabled()
Checks whether the log4j framework was successfully enabled
|
static void |
setRootLevel(String level)
Sets the level of the root logger
|
public static boolean isEnabled()
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, TRACE, WARN).public static boolean enableLogging()
true
if logging was successfully enabledCopyright © 2005–2021 Open Microscopy Environment. All rights reserved.