Interface LogRecord

  • All Known Implementing Classes:
    LogRecordModel

    public interface LogRecord
    Provides additional information for simplifying logging
    Author:
    Oliver Wolff
    • Method Detail

      • getPrefix

        String getPrefix()
        Returns:
        the prefix for identifying the log-entry, e.g. 'CUI'
      • getTemplate

        String getTemplate()
        Returns:
        The message template for creating the log-message
      • format

        String format​(Object... parameter)
        Formats the template with the given object. Important: it implicitly prepends the identifier, e.g. "CUI-100: " in front of the created message.
        Parameters:
        parameter - optional, used for filling the template
        Returns:
        the formated String.