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(java.lang.Object originator,
LogMessage msg)
Logs a debug message.
|
void |
debug(java.lang.Object originator,
java.lang.String logMsg)
Logs a debug message.
|
void |
error(java.lang.Object originator,
LogMessage msg)
Logs an error message.
|
void |
error(java.lang.Object originator,
java.lang.String logMsg)
Logs an error message.
|
void |
fatal(java.lang.Object originator,
LogMessage msg)
Logs a fatal message.
|
void |
fatal(java.lang.Object originator,
java.lang.String logMsg)
Logs a fatal message.
|
java.lang.String |
getLogFile()
Returns the log file.
|
void |
info(java.lang.Object originator,
LogMessage msg)
Logs an info message.
|
void |
info(java.lang.Object originator,
java.lang.String logMsg)
Logs an info message.
|
void |
warn(java.lang.Object originator,
LogMessage msg)
Logs a warn message.
|
void |
warn(java.lang.Object originator,
java.lang.String logMsg)
Logs a warn message.
|
void debug(java.lang.Object originator, java.lang.String logMsg)
originator
- The originator of the message.logMsg
- The log message.void debug(java.lang.Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.void info(java.lang.Object originator, java.lang.String logMsg)
originator
- The originator of the message.logMsg
- The log message.void info(java.lang.Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.void warn(java.lang.Object originator, java.lang.String logMsg)
originator
- The originator of the message.logMsg
- The log message.void warn(java.lang.Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.void error(java.lang.Object originator, java.lang.String logMsg)
originator
- The originator of the message.logMsg
- The log message.void error(java.lang.Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.void fatal(java.lang.Object originator, java.lang.String logMsg)
originator
- The originator of the message.logMsg
- The log message.void fatal(java.lang.Object originator, LogMessage msg)
originator
- The originator of the message.msg
- The log message.java.lang.String getLogFile()
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.