net.sourceforge.acelogger.formatter
Class PatternFormatter

java.lang.Object
  extended by net.sourceforge.acelogger.formatter.BaseFormatter
      extended by net.sourceforge.acelogger.formatter.PatternFormatter
All Implemented Interfaces:
Formatter, Identifiable

public class PatternFormatter
extends BaseFormatter

TODO: Create Doc.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Field Summary
 
Fields inherited from interface net.sourceforge.acelogger.formatter.Formatter
NO_FORMATTER
 
Constructor Summary
PatternFormatter(String identifier, String pattern)
           
PatternFormatter(String identifier, String pattern, boolean shouldPrintStackTrace)
           
PatternFormatter(String identifier, String pattern, boolean shouldPrintStackTrace, TextInterpolator formatInterpolator, TextInterpolator messageInterpolator)
           
 
Method Summary
 String formatLogCall(LogEvent call)
          Formats a log call to it's string representation.
 
Methods inherited from class net.sourceforge.acelogger.formatter.BaseFormatter
formatMessage, formatStackTrace, getIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternFormatter

public PatternFormatter(String identifier,
                        String pattern)

PatternFormatter

public PatternFormatter(String identifier,
                        String pattern,
                        boolean shouldPrintStackTrace)

PatternFormatter

public PatternFormatter(String identifier,
                        String pattern,
                        boolean shouldPrintStackTrace,
                        TextInterpolator formatInterpolator,
                        TextInterpolator messageInterpolator)
Method Detail

formatLogCall

public String formatLogCall(LogEvent call)
Description copied from interface: Formatter
Formats a log call to it's string representation.

Parameters:
call - The log call, containing the message, parameters and log location information.
Returns:
The string representation of the log call.


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.