Boost C++ Libraries

PrevUpHomeNext

Class template basic_composite_logger<CharT, FinalT, single_thread_model, FeaturesT>

boost::log::sources::basic_composite_logger<CharT, FinalT, single_thread_model, FeaturesT> — An optimized composite logger version with no multithreading support.

Synopsis

// In header: <boost/log/sources/basic_logger.hpp>

template<typename CharT, typename FinalT, typename FeaturesT> 
class basic_composite_logger<CharT, FinalT, single_thread_model, FeaturesT> {
public:
  // types
  typedef base_type::threading_model    threading_model;   
  typedef base_type::attribute_set_type attribute_set_type;
  typedef base_type::string_type        string_type;       
  typedef base_type::record_type        record_type;       

  // construct/copy/destruct
  basic_composite_logger& operator=(FinalT);

  // public member functions
   basic_composite_logger();
   basic_composite_logger(basic_composite_logger const &);
  template<typename ArgsT>  basic_composite_logger(ArgsT const &);
  std::pair< typename attribute_set_type::iterator, bool > 
  add_attribute(string_type const &, shared_ptr< attribute > const &);
  void remove_attribute(typename attribute_set_type::iterator);
  void remove_all_attributes();
  attribute_set_type get_attributes() const;
  void set_attributes(attribute_set_type const &);
  record_type open_record();
  template<typename ArgsT> record_type open_record(ArgsT const &);
  void push_record(record_type const &);
  void swap(basic_composite_logger &);
};

Description

basic_composite_logger public construct/copy/destruct

  1. basic_composite_logger& operator=(FinalT that);

basic_composite_logger public member functions

  1.  basic_composite_logger();
  2.  basic_composite_logger(basic_composite_logger const & that);
  3. template<typename ArgsT>  basic_composite_logger(ArgsT const & args);
  4. std::pair< typename attribute_set_type::iterator, bool > 
    add_attribute(string_type const & name, shared_ptr< attribute > const & attr);
  5. void remove_attribute(typename attribute_set_type::iterator it);
  6. void remove_all_attributes();
  7. attribute_set_type get_attributes() const;
  8. void set_attributes(attribute_set_type const & attrs);
  9. record_type open_record();
  10. template<typename ArgsT> record_type open_record(ArgsT const & args);
  11. void push_record(record_type const & record);
  12. void swap(basic_composite_logger & that);

PrevUpHomeNext