Bio-Formats uses SLF4J as a logging API. SLF4J is a facade and needs to be bound to a logging framework at deployment time. Two underlying logging frameworks are currently supported by Bio-Formats:
The DebugTools class contains a series of framework-agnostic methods for the initialization and control of the logging system. This class uses reflection to detect the underlying logging framework and delegate the method calls to either Log4jTools or LogbackTools.
The main methods are described below:
Changed in version 5.2.0: Prior to Bio-Formats 5.2.0, DebugTools.enableLogging(level) unconditionally set the logging and root logger level. Use DebugTools.setRootLevel(level) to restore this behavior.