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

logging.h File Reference

Go to the source code of this file.

Namespaces

namespace  templog

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)


Detailed Description

templog logging header

This file defines all the actual logging stuff.

Definition in file logging.h.


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