AnCH Framework 0.1
Another C++ Hack Framework
Loading...
Searching...
No Matches
anch::log::fmt::MDCFormatter Class Reference

#include <mdcFormatter.hpp>

Inheritance diagram for anch::log::fmt::MDCFormatter:
Collaboration diagram for anch::log::fmt::MDCFormatter:

Public Member Functions

 MDCFormatter (const std::string &key)
virtual ~MDCFormatter ()
virtual void formatValue (const void *const value, std::ostream &out) const noexcept
virtual anch::log::fmt::FormatterType getType () const noexcept
Public Member Functions inherited from anch::log::fmt::IFormatter
virtual ~IFormatter ()

Detailed Description

MDC value formatter

Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ MDCFormatter()

anch::log::fmt::MDCFormatter::MDCFormatter ( const std::string & key)

MDCFormatter default constructor

Parameters
keythe MDC key

◆ ~MDCFormatter()

virtual anch::log::fmt::MDCFormatter::~MDCFormatter ( )
virtual

MDCFormatter destructor

Member Function Documentation

◆ formatValue()

virtual void anch::log::fmt::MDCFormatter::formatValue ( const void *const value,
std::ostream & out ) const
virtualnoexcept

Return the input string

Parameters
valueThe input string
outThe output stream to write in

Implements anch::log::fmt::IFormatter.

◆ getType()

virtual anch::log::fmt::FormatterType anch::log::fmt::MDCFormatter::getType ( ) const
virtualnoexcept

Get the formatter type

Returns
The formatter type

Implements anch::log::fmt::IFormatter.


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