- Type Parameters:
M
- The marker used to mark the aMessage to be logged.
- All Known Subinterfaces:
RuntimeLogger
- All Known Implementing Classes:
RuntimeLoggerImpl
,RuntimeLoggerSingleton
public interface MessageLogger<M>
The aMessage logger is the generic version of the
RuntimeLogger
.
Instead of being bound to a LogPriority
to mark your log lines, you
may use any type as marker.-
Method Summary
-
Method Details
-
log
Creates a new log aMessage.- Parameters:
aMarker
- The marker for the aMessage.aMessage
- The aMessage to be logged.
-
log
Creates a new log aMessage. The placeholders in the aMessageString
are being replaced by the provided arguments. Implementations of this interface are recommended to use Java'sMessageFormat
's syntax, the placeholder being replaced by the first argument is identified by "{0}" (without the quotes), the second one by "{1}", the third one by "{3}" and so on: Given the aMessage to be "{0} + {1} = {2}" and the three argument be x, y and x + y, then "{0}" is replaced by the value of x, "{1}" is replaced by the value of y and "{2}" is replaced by the value of x + y.- Parameters:
aMarker
- The marker for the aMessage.aMessage
- The aMessage to be logged.aArguments
- The arguments used when replacing the placeholders.
-