logahawk.formatters
Class SimpleMessageFormatter

java.lang.Object
  extended by 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.
 
Constructor Summary
SimpleMessageFormatter()
           
 
Method Summary
 String format(LogMeta meta, String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected final StringBuilder buffer
A single StringBuilder is used to avoid having to re-allocate a string each time.

Constructor Detail

SimpleMessageFormatter

public SimpleMessageFormatter()
Method Detail

format

public String format(LogMeta meta,
                     String text)
Specified by:
format in interface MessageFormatter