l4snd::Formatter Class Reference

Base class for all log4sendpp formatters. More...

Inheritance diagram for l4snd::Formatter:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Formatter ()
 Provide virtual destructor.
virtual std::vector
< std::string > 
format (Logger::Level level, const std::string &msg, std::string category, LOG4SENDPP_INT64 stamp, const LocationInformation *loginfo, const Logger::DiagnosticInformation *diaginfo)=0
 Formats a message.


Detailed Description

Base class for all log4sendpp formatters.

Definition at line 48 of file formatter.h.


Member Function Documentation

virtual std ::vector< std ::string> l4snd::Formatter::format ( Logger::Level  level,
const std::string &  msg,
std::string  category,
LOG4SENDPP_INT64  stamp,
const LocationInformation loginfo,
const Logger::DiagnosticInformation diaginfo 
) [pure virtual]

Formats a message.

Parameters:
level severty level
msg string to log
category message category
stamp timestamp in milliseconds since 1.1.1970
loginfo pointer to location info or 0
diaginfo pointer to diagnostic info or 0
Returns:
formatted message in one or more lines

Implemented in l4snd::SimpleFormatter, and l4snd::XmlFormatter.

Referenced by l4snd::TcpIpAppender::append(), and l4snd::FileAppender::append().


The documentation for this class was generated from the following files:
Generated on Sat Nov 24 14:41:25 2007 for log4sendpp by  doxygen 1.5.3