Package io.cui.tools.logging
Interface LogRecord
-
- All Known Implementing Classes:
LogRecordModel
public interface LogRecord
Provides additional information for simplifying logging- Author:
- Oliver Wolff
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringformat(Object... parameter)Formats the template with the given object.IntegergetIdentifier()StringgetPrefix()StringgetTemplate()StringresolveIdentifierString()Supplier<String>supplier(Object... parameter)Returns aSupplierview on the formatter
-
-
-
Method Detail
-
getIdentifier
Integer getIdentifier()
- Returns:
- the identifier for the concrete entry, e.g. '100'
-
getTemplate
String getTemplate()
- Returns:
- The message template for creating the log-message
-
supplier
Supplier<String> supplier(Object... parameter)
Returns aSupplierview on the formatter- Parameters:
parameter- optional, used for filling the template- Returns:
- a
Supplierview 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
String resolveIdentifierString()
- Returns:
- the concatenated identifier String, e.g. CUI-100
-
-