public abstract class

PatternConverter

extends Object
java.lang.Object
   ↳ org.apache.log4j.helpers.PatternConverter
Known Direct Subclasses

Class Overview

PatternConverter is an abtract class that provides the formatting functionality that derived classes need.

Conversion specifiers in a conversion patterns are parsed to individual PatternConverters. Each of which is responsible for converting a logging event in a converter specific manner.

Summary

Fields
public PatternConverter next
Protected Constructors
PatternConverter()
PatternConverter(FormattingInfo fi)
Public Methods
void format(StringBuffer sbuf, LoggingEvent e)
A template method for formatting in a converter specific way.
void spacePad(StringBuffer sbuf, int length)
Fast space padding method.
Protected Methods
abstract String convert(LoggingEvent event)
Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public PatternConverter next

Protected Constructors

protected PatternConverter ()

protected PatternConverter (FormattingInfo fi)

Public Methods

public void format (StringBuffer sbuf, LoggingEvent e)

A template method for formatting in a converter specific way.

public void spacePad (StringBuffer sbuf, int length)

Fast space padding method.

Protected Methods

protected abstract String convert (LoggingEvent event)

Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.