boost::logging::msg_route::with_route< formatter_base, destination_base, lock_resource, formatter_array, destination_array > Class Template Reference

. Represents a router - by default, first calls all formatters, then all destinations. However you can overwrite this route More...

Inheritance diagram for boost::logging::msg_route::with_route< formatter_base, destination_base, lock_resource, formatter_array, destination_array >:
[legend]
Collaboration diagram for boost::logging::msg_route::with_route< formatter_base, destination_base, lock_resource, formatter_array, destination_array >:
[legend]

List of all members.

Public Member Functions

route_do_set set_route ()
route_do_append append_route ()

Classes

class  route


Detailed Description

template<class formatter_base, class destination_base, class lock_resource = default_, class formatter_array = boost::logging::array::shared_ptr_holder<formatter_base>, class destination_array = boost::logging::array::shared_ptr_holder<destination_base>>
class boost::logging::msg_route::with_route< formatter_base, destination_base, lock_resource, formatter_array, destination_array >

. Represents a router - by default, first calls all formatters, then all destinations. However you can overwrite this route

You can append a route - with append_route(), or set the route with set_route().

Example:

    typedef logger< default_, 
        writer::format_write< format_base, destination_base, format_and_write::simple<cache_string>,
            msg_route::with_route<format_base,destination_base> > > logger_type;
    logger_type g_l();

    g_l()->writer().router().set_route()
        .fmt( formatter::time() ) 
        .fmt( formatter::append_newline() )
        .dest( destination::dbg_window() )
        .fmt( formatter::write_idx() )
        .dest( destination::cout() )
        .clear()
        .fmt( formatter::write_idx() )
        .fmt( formatter::append_newline() )
        .fmt( formatter::write_to_file())
        ;

Parameters:
format_base The base class for all formatter classes from your application. See manipulator.
destination_base The base class for all destination classes from your application. See manipulator.
Remarks:
In the router - we don't own the objects - the array holder does that

Member Function Documentation

template<class formatter_base, class destination_base, class lock_resource = default_, class formatter_array = boost::logging::array::shared_ptr_holder<formatter_base>, class destination_array = boost::logging::array::shared_ptr_holder<destination_base>>
route_do_set boost::logging::msg_route::with_route< formatter_base, destination_base, lock_resource, formatter_array, destination_array >::set_route (  )  [inline]

sets this as the route for logging

template<class formatter_base, class destination_base, class lock_resource = default_, class formatter_array = boost::logging::array::shared_ptr_holder<formatter_base>, class destination_array = boost::logging::array::shared_ptr_holder<destination_base>>
route_do_append boost::logging::msg_route::with_route< formatter_base, destination_base, lock_resource, formatter_array, destination_array >::append_route (  )  [inline]

appends this route


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

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