AnCH Framework  0.1
Another C++ Hack Framework
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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:

Author
Vincent Lachenal

Constructor & Destructor Documentation

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

MessageFormatter constructor

Parameters
linePatternThe message line pattern
MessageFormatter::~MessageFormatter ( )
virtual

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.

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

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