toast::basic_log_handle< CharT > Class Template Reference
[toast logging library]

#include <toast/log_handle.hpp>

List of all members.


Detailed Description

template<typename CharT>
class toast::basic_log_handle< CharT >

A handle for a logger.

This class will forward on message, forced_message, and check requests to a toast::logger class. If the toast::logger is destroyed, the basic_log_handle is invalid until a new toast::logger or valid basic_log_handle is assigned to it. Using the log_handle when it is invalid will cause undefined behaviour (if you're lucky this means your program will crash).

Public Types

typedef CharT char_type

Public Member Functions

template<typename Logger>
 basic_log_handle (Logger &logger)
 basic_log_handle (basic_log_handle const &other)
 basic_log_handle (basic_log_handle &other)
basic_log_handleoperator= (basic_log_handle temp)
void swap (basic_log_handle &other)
template<typename Traits, typename Alloc>
void message (std::basic_string< char_type, Traits, Alloc > const &m, log::severity s=log::DEFAULT) const
 Forwards to logger::message.
void message (char_type const *m, log::severity s=log::DEFAULT) const
 Forwards to logger::message.
char_type * consume_message (char_type *m, log::severity s=log::DEFAULT) const
 Forwards to logger::message.
char_type * consume_forced_message (char_type *m, log::severity s=log::DEFAULT) const
 Forwards to logger::message.
template<typename Traits, typename Alloc>
void forced_message (std::basic_string< char_type, Traits, Alloc > const &m, log::severity s=log::DEFAULT) const
 Forwards to logger::forced_message.
void forced_message (char_type const *m, log::severity s=log::DEFAULT) const
 Forwards to logger::forced_message.
bool check (log::severity s) const
 Forwards to logger::check.


Member Function Documentation

template<typename CharT>
bool toast::basic_log_handle< CharT >::check ( log::severity  s  )  const [inline]

Forwards to logger::check.

See also:
verbosity_policies.hpp


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

SourceForge.net Logo