Public Types | |
typedef logger < gather_type, writer::named_write<> > | type |
#include <boost/logging/format/named_write.hpp>
Example:
typedef boost::logging::named_logger<>::type logger_type;
Setting the formatters and destinations to write to is extremely simple:
// first param - the formatter(s) , second param : the destination(s) g_l()->writer().write("%time%($hh:$mm.$ss.$mili) [%idx%] |\n", "cout file(out.txt) debug");
To see the syntax, see writer::named_write
mul_levels_mul_logers.cpp, mul_levels_one_logger.cpp, and one_loger_one_filter.cpp.
typedef logger< gather_type, writer::named_write<> > boost::logging::named_logger< gather >::type |
named_logger<...>type finds a logger that uses writer::named_write<> "Named Formatters and Destinations"
#include <boost/logging/format/named_write.hpp>
Example:
typedef boost::logging::named_logger<>::type logger_type;
Setting the formatters and destinations to write to is extremely simple:
// first param - the formatter(s) , second param : the destination(s) g_l()->writer().write("%time%($hh:$mm.$ss.$mili) [%idx%] |\n", "cout file(out.txt) debug");
To see the syntax, see writer::named_write