Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

templog Namespace Reference


Classes

struct  audience_list
struct  log_intermediate
struct  log_forwarder
class  logger< Logger_, MinSeverity_, audience_list< Aud1_, Aud2_, Aud3_ > >
class  formating_policy_base
class  sev_aud_formating_policy
class  visual_studio_formating_policy
class  write_policy_base
class  incremental_write_policy_base
class  non_incremental_write_policy_base
class  stderr_write_policy
class  windbg_write_policy
class  dynamic_write_policy
class  non_filtering_logger

Namespaces

namespace  templ_meta

Typedefs

typedef visual_studio_formating_policy<
sev_aud_formating_policy
std_formating_policy
typedef windbg_write_policy std_write_policy
typedef non_filtering_logger<
std_formating_policy, std_write_policy
global_logger

Enumerations

enum  severity {
  sev_debug = 1,
  sev_info,
  sev_message,
  sev_warning,
  sev_error,
  sev_fatal
}
enum  audience {
  aud_developer = 1,
  aud_support,
  aud_user
}

Functions

const char * get_name (severity sev)
const char * get_short_name (severity sev)
const char * get_name (audience aud)
const char * get_short_name (audience aud)
template<int Sev_, int Aud_, class ParamList_, typename Param_>
log_intermediate< Sev_, Aud_,
false, templ_meta::nil
operator<< (const log_intermediate< Sev_, Aud_, false, ParamList_ > &, const Param_ &)
template<int Sev_, int Aud_, class ParamList_, typename Param_>
log_intermediate< Sev_, Aud_,
true, templ_meta::tuple<
const Param_ *, ParamList_ > > 
operator<< (const log_intermediate< Sev_, Aud_, true, ParamList_ > &lim, const Param_ &p)


Typedef Documentation

typedef sev_aud_formating_policy templog::std_formating_policy
 

Definition at line 742 of file logging.h.

typedef stderr_write_policy templog::std_write_policy
 

Definition at line 743 of file logging.h.

typedef non_filtering_logger< std_formating_policy , std_write_policy> templog::global_logger
 

Global logger

This is the global logger which, eventually, all other loggers forward log messages * to.

There's no need to use this directly.

Definition at line 780 of file logging.h.


Enumeration Type Documentation

enum templog::severity
 

Logging severity

This determines a log statement's severity. Log messages can be filtered by their severity.

Enumeration values:
sev_debug  debugging
sev_info  informational
sev_message  messages
sev_warning  warnings
sev_error  errors
sev_fatal  fatal errors

Definition at line 168 of file logging.h.

enum templog::audience
 

Logging audience

This determines a log statement's target audience. Log messages can be filtered by their audience.

Enumeration values:
aud_developer  helping developers
aud_support  helping support
aud_user  for users

Definition at line 182 of file logging.h.


Function Documentation

const char* templog::get_name severity  sev  ) 
 

Retrieves a textual description for a severity

const char* templog::get_short_name severity  sev  ) 
 

Retrieves a short (three letters) textual description for a severity

Referenced by templog::sev_aud_formating_policy::write().

const char* templog::get_name audience  aud  ) 
 

Retrieves a textual description for an audience

const char* templog::get_short_name audience  aud  ) 
 

Retrieves a short (three letters) textual description for an audience

template<int Sev_, int Aud_, class ParamList_, typename Param_>
log_intermediate< Sev_, Aud_, false, templ_meta::nil > templog::operator<< const log_intermediate< Sev_, Aud_, false, ParamList_ > &  ,
const Param_ & 
[inline]
 

Adds a parameter to a subexpression of a log statement

This version is used for log statements that will be discarded at compile time.

Definition at line 254 of file logging.h.

template<int Sev_, int Aud_, class ParamList_, typename Param_>
log_intermediate< Sev_, Aud_, true, templ_meta::tuple<const Param_*,ParamList_> > templog::operator<< const log_intermediate< Sev_, Aud_, true, ParamList_ > &  lim,
const Param_ &  p
[inline]
 

Adds a parameter to a subexpression of a log statement

This version is used for log statements that will not be discarded at compile time.

Definition at line 270 of file logging.h.


Generated on Sun Jan 11 15:57:20 2009 for templog library by  doxygen 1.4.2