Boost C++ Libraries

PrevUpHomeNext

Global c_ascii_dec

boost::log::formatters::c_ascii_dec

Synopsis

// In header: <boost/log/formatters/c_decorator.hpp>

implementation_defined c_ascii_dec;

Description

C-style decorator generator object. Acts similarly to c_dec, except that c_ascii_dec also converts all non-ASCII and non-printable ASCII characters, except for space character, into C-style hexadecimal escape sequences. The generator provides operator[] that can be used to construct the actual decorator. For example:

c_ascii_dec[ attr< std::string >("MyAttr") ]


PrevUpHomeNext