Interface MessageLogger<M>

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

    Modifier and Type
    Method
    Description
    void
    log(M aMarker, String aMessage)
    Creates a new log aMessage.
    void
    log(M aMarker, String aMessage, Object... aArguments)
    Creates a new log aMessage.
  • Method Details

    • log

      void log(M aMarker, String aMessage)
      Creates a new log aMessage.
      Parameters:
      aMarker - The marker for the aMessage.
      aMessage - The aMessage to be logged.
    • log

      void log(M aMarker, String aMessage, Object... aArguments)
      Creates a new log aMessage. The placeholders in the aMessage String are being replaced by the provided arguments. Implementations of this interface are recommended to use Java's MessageFormat'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.