- All Known Implementing Classes:
LogRecordModel
public interface LogRecord
Provides additional information for simplifying logging
- Author:
- Oliver Wolff
-
Method Summary
Modifier and TypeMethodDescriptionFormats the template with the given object.Returns aSupplierview on the formatter
-
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
Returns aSupplierview on the formatter- Parameters:
parameter- optional, used for filling the template- Returns:
- a
Supplierview on the formatter
-
format
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
-