Package sc.fiji.snt.util
Class Logger
java.lang.Object
sc.fiji.snt.util.Logger
The Logger class provides functionality for logging messages with different levels such as
info, debug, and warn.
Relies on external services, such as LogService and PrefService, injected via the provided context.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Logger
-
Logger
Constructs a new Logger with the specified context and caller identifier.- Parameters:
context- the SciJava context for dependency injectioncallerIdentifier- the identifier for the calling class/component
-
-
Method Details
-
info
Logs an informational message.- Parameters:
msg- the message to log
-
debug
Logs a debug message (only if debug mode is enabled).- Parameters:
msg- the debug message to log
-
warn
Logs a warning message.- Parameters:
string- the warning message to log
-
isDebug
public boolean isDebug()Checks if debug mode is enabled.- Returns:
- true if debug mode is enabled, false otherwise
-
setDebug
public void setDebug(boolean debug) Sets the debug mode state.- Parameters:
debug- true to enable debug mode, false to disable
-