boost::logging::named_logger< gather > Struct Template Reference

named_logger<...>type finds a logger that uses writer::named_write<> "Named Formatters and Destinations" More...

List of all members.

Public Types

typedef logger
< gather_type,
writer::named_write<> > 
type


Detailed Description

template<class gather = default_>
struct boost::logging::named_logger< gather >

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

Examples:

mul_levels_mul_logers.cpp, mul_levels_one_logger.cpp, and one_loger_one_filter.cpp.


Member Typedef Documentation

template<class gather = default_>
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:

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


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

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