org.openmdx.kernel.log
Interface LogFormatter

All Known Implementing Classes:
LogFormatterHtml, LogFormatterStandard

public interface LogFormatter

This class provides a simple formatter for log events


Field Summary
static String formatSpecifierPrefix
          The log file format specifier prefix
static String multiLineMarker
          The multi line detail log string marker
 
Method Summary
 String format(LogEvent event)
          Returns a String representation for the LogEvent object.
 String getFormat()
          Returns the currently set format string for standard log events
 String getLogFileSpecifier()
          Returns log file format specifier.
 

Field Detail

multiLineMarker

static final String multiLineMarker
The multi line detail log string marker

See Also:
Constant Field Values

formatSpecifierPrefix

static final String formatSpecifierPrefix
The log file format specifier prefix

See Also:
Constant Field Values
Method Detail

format

String format(LogEvent event)
Returns a String representation for the LogEvent object. Uses the standard format.

This operation is not threadsafe.

Returns:
a String representation

getFormat

String getFormat()
Returns the currently set format string for standard log events

Returns:
A log format string

getLogFileSpecifier

String getLogFileSpecifier()
Returns log file format specifier. This specifier is written to the first line of each log file.

Returns:
A log format specifier string


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.