net.sourceforge.acelogger.formatter
Class MessageOnlyFormatter
java.lang.Object
net.sourceforge.acelogger.formatter.BaseFormatter
net.sourceforge.acelogger.formatter.MessageOnlyFormatter
- All Implemented Interfaces:
- Formatter, Identifiable
public class MessageOnlyFormatter
- extends BaseFormatter
An implementation of Formatter
that formats only the log message, no other
LogEvent
information is used to format the message.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Zardi (https://sourceforge.net/users/daniel_zardi)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageOnlyFormatter
public MessageOnlyFormatter(String identifier)
- Constructs a new MessageOnlyFormatter with the supplied identifier.
- Parameters:
identifier
- The string that identifies this formatter.- Since:
- 1.0.0
MessageOnlyFormatter
public MessageOnlyFormatter(String identifier,
TextInterpolator interpolator)
- Constructs a new MessageOnlyFormatter with the supplied identifier and text interpolator.
- Parameters:
identifier
- The string that identifies this formatter.interpolator
- The text interpolator used to format the messages.- Since:
- 1.0.0
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.