net.sourceforge.acelogger.formatter
Class SimpleFormatter

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

public class SimpleFormatter
extends BaseFormatter

An implementation of Formatter that formats the log message and outputs the date, location and message.

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
SimpleFormatter(String identifier)
          Constructs a new SimpleFormatter with the supplied identifier.
 
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

SimpleFormatter

public SimpleFormatter(String identifier)
Constructs a new SimpleFormatter with the supplied identifier.

Parameters:
identifier - The string that identifies this formatter.
Since:
1.0.0
Method Detail

formatLogCall

public String formatLogCall(LogEvent call)
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.