logahawk.formatters
Class SimpleMessageFormatter
java.lang.Object
logahawk.formatters.SimpleMessageFormatter
- All Implemented Interfaces:
- MessageFormatter
@Immutable
public class SimpleMessageFormatter
- extends Object
- implements MessageFormatter
A very simple MessageFormatter
that does not output the time of the log message. This may be useful for
outputting to the console (i.e. System.out).
Field Summary |
protected StringBuilder |
buffer
A single StringBuilder is used to avoid having to re-allocate a string each time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected final StringBuilder buffer
- A single StringBuilder is used to avoid having to re-allocate a string each time.
SimpleMessageFormatter
public SimpleMessageFormatter()
format
public String format(LogMeta meta,
String text)
- Specified by:
format
in interface MessageFormatter