public interface Logger
Every method takes in two parameters: the originator of the log message
and the log message itself. If the message spans multiple lines, then
a LogMessage
object should be used to construct it.
A configuration file (in the configuration directory under the installation directory) provides for fine-tuning of the log settings on a per-class basis. Those settings include the choice of output locations and verbosity based on priority levels DEBUG has a lower priority than INFO, which, in turn, is lower priority than WARN, and so on.
The implementation of the service is thread-safe. Methods can be called from different threads without compromising the integrity of the log records.
Modifier and Type | Method and Description |
---|---|
void |
debug(Object originator,
LogMessage msg)
Logs a debug message.
|
void |
debug(Object originator,
String logMsg)
Logs a debug message.
|
void |
error(Object originator,
LogMessage msg)
Logs an error message.
|
void |
error(Object originator,
String logMsg)
Logs an error message.
|
void |
fatal(Object originator,
LogMessage msg)
Logs a fatal message.
|
void |
fatal(Object originator,
String logMsg)
Logs a fatal message.
|
String |
getLogFile()
Returns the log file.
|
void |
info(Object originator,
LogMessage msg)
Logs an info message.
|
void |
info(Object originator,
String logMsg)
Logs an info message.
|
void |
warn(Object originator,
LogMessage msg)
Logs a warn message.
|
void |
warn(Object originator,
String logMsg)
Logs a warn message.
|
void debug(Object originator, String logMsg)
originator
- The originator of the message.logMsg
- The log message.void debug(Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.void info(Object originator, String logMsg)
originator
- The originator of the message.logMsg
- The log message.void info(Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.void warn(Object originator, String logMsg)
originator
- The originator of the message.logMsg
- The log message.void warn(Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.void error(Object originator, String logMsg)
originator
- The originator of the message.logMsg
- The log message.void error(Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.void fatal(Object originator, String logMsg)
originator
- The originator of the message.logMsg
- The log message.void fatal(Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.String getLogFile()
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.