Interface LogRecord

All Known Implementing Classes:
LogRecordModel

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

    • getPrefix

      Returns:
      the prefix for identifying the log-entry, e.g. 'CUI'
    • getIdentifier

      Returns:
      the identifier for the concrete entry, e.g. '100'
    • getTemplate

      Returns:
      The message template for creating the log-message
    • supplier

      Supplier<String> supplier(Object... parameter)
      Returns a Supplier view on the formatter
      Parameters:
      parameter - optional, used for filling the template
      Returns:
      a Supplier view on the formatter
    • 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.
    • resolveIdentifierString

      Returns:
      the concatenated identifier String, e.g. CUI-100