boost::logging::formatter::idx_t< convert > Struct Template Reference

prefixes each message with an index. More...

Inheritance diagram for boost::logging::formatter::idx_t< convert >:
[legend]
Collaboration diagram for boost::logging::formatter::idx_t< convert >:
[legend]

List of all members.


Detailed Description

template<class convert = do_convert_format::prepend>
struct boost::logging::formatter::idx_t< convert >

prefixes each message with an index.

Example:

L_ << "my message";
L_ << "my 2nd message";

This will output something similar to:

[1] my message
[2] my 2nd message

Parameters:
convert [optional] In case there needs to be a conversion between std::(w)string and the string that holds your logged message. See convert_format. For instance, you might use a cached_string class (see optimize namespace).
Examples:

custom_fmt_dest.cpp, ded_loger_one_filter.cpp, mul_loggers_one_filter.cpp, no_levels_with_route.cpp, ts_loger_one_filter.cpp, use_profiler.cpp, use_tss_ostringstream.cpp, using_tags.cpp, and your_scenario.cpp.


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

Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback