PatternConverter Class Reference

Inheritance diagram for PatternConverter:

Inheritance graph
[legend]
Collaboration diagram for PatternConverter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void format (ostream &sbuf, const spi::LoggingEventPtr &e) const

Protected Member Functions

virtual void convert (ostream &sbuf, const spi::LoggingEventPtr &event) const=0

Detailed Description

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.


Member Function Documentation

virtual void convert ostream &  sbuf,
const spi::LoggingEventPtr event
const [protected, pure virtual]
 

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

void format ostream &  sbuf,
const spi::LoggingEventPtr e
const [virtual]
 

A template method for formatting in a converter specific way.


The documentation for this class was generated from the following files:
  • patternconverter.h
  • patternconverter.cpp

Copyright © 1999-2004, Apache Software Foundation