logahawk.formatters
Interface MessageFormatter
- All Known Implementing Classes:
- HashedMessageFormatter, RollingHashedMessageFormatter, SimpleMessageFormatter, StandardMessageFormatter, ThreadMessageFormatter
public interface MessageFormatter
Formats a LogMeta
and String
message into a single string. The intent of this class is to be used by
Listener
s that write a single string at a time, such as listenerEntries in a log file. Listener
s of will use
a MessageFormatter
before persisting the string.
Using MessageFormatter
s is not required, and is entirely dependent on the Listener
implementation.
format
String format(LogMeta meta,
String message)