...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::expressions::xml_decor
// In header: <boost/log/expressions/formatters/xml_decorator.hpp> unspecified xml_decor;
XML-style decorator generator object. The decorator replaces characters that have special meaning in XML documents with the corresponding decorated counterparts. The generator provides operator[]
that can be used to construct the actual decorator. For example:
xml_decor[ stream << attr< std::string >("MyAttr") ]
For wide-character formatting there is the similar wxml_decor
decorator generator object.