AnCH Framework  0.1
Another C++ Hack Framework
Public Member Functions | List of all members
anch::logger::formatter::MessageFormatter Class Reference

#include <messageFormatter.hpp>

Collaboration diagram for anch::logger::formatter::MessageFormatter:

Public Member Functions

 MessageFormatter (const std::string &linePattern)
virtual ~MessageFormatter ()
const std::string formatMessage (const std::string &category, const anch::logger::Level &level, const std::string &message) const

Detailed Description

Format a message for logging acording writer configuration

Paterns are:

Vincent Lachenal

Constructor & Destructor Documentation

MessageFormatter::MessageFormatter ( const std::string &  linePattern)

MessageFormatter constructor

linePatternThe message line pattern
MessageFormatter::~MessageFormatter ( )

MessageFormatter destructor

Member Function Documentation

const std::string MessageFormatter::formatMessage ( const std::string &  category,
const anch::logger::Level level,
const std::string &  message 
) const

Format message.

categoryThe logger category
levelThe logging level
messageThe logging message
The formatted message

The documentation for this class was generated from the following files: