boost::logging::logger_format_write< format_base, destination_base, thread_safety, gather, lock_resource > Struct Template Reference

Makes it easier to use a logger with format_write class. More...

Inheritance diagram for boost::logging::logger_format_write< format_base, destination_base, thread_safety, gather, lock_resource >:
[legend]
Collaboration diagram for boost::logging::logger_format_write< format_base, destination_base, thread_safety, gather, lock_resource >:
[legend]

List of all members.


Detailed Description

template<class format_base, class destination_base, class thread_safety, class gather, class lock_resource>
struct boost::logging::logger_format_write< format_base, destination_base, thread_safety, gather, lock_resource >

Makes it easier to use a logger with format_write class.

You just define your logger<...> class like this:

typedef logger_format_write<format_base,destination_base> logger_type;

instead of

typedef logger_format_write< 
        format_base, destination_base
        gather::ostream_like::return_str<>, 
        writer::format_write<formatter_base,destination_base> > > logger_type;

FIXME need to have more template params

Parameters:
format_base_type (optional) Your formatter base class
destination_base (optional) Your destination base class
thread_safety (optional) Thread-safety. Any of the writer::threading classes.
gather (optional) The class that gathers the message
Examples:

cache_before_init.cpp, 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, and use_tss_ostringstream.cpp.


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

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