loggers::null_logger Class Reference

a trash can for logging; throws away all entries. More...

#include <program_wide_logger.h>

Inheritance diagram for loggers::null_logger:
Inheritance graph
[legend]
Collaboration diagram for loggers::null_logger:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~null_logger ()
 DEFINE_CLASS_NAME ("null_logger")
virtual basis::outcome log (const basis::base_string &info, int filter)
 writes the information in "info" to the logger using the "filter".

Detailed Description

a trash can for logging; throws away all entries.

Provides a logger that throws away all of the strings that are logged to it. This is useful when an interface requires a base_logger but one does not wish to generate an output file. This object is similar to /dev/null in Unix (or Linux) and to nul: in Win32.

Definition at line 70 of file program_wide_logger.h.


Constructor & Destructor Documentation

virtual loggers::null_logger::~null_logger (  )  [inline, virtual]

Definition at line 73 of file program_wide_logger.h.


Member Function Documentation

loggers::null_logger::DEFINE_CLASS_NAME ( "null_logger"   ) 
virtual basis::outcome loggers::null_logger::log ( const basis::base_string info,
int  filter 
) [inline, virtual]

writes the information in "info" to the logger using the "filter".

the derived class can interpret the filter appropriately and only show the "info" if the filter is enabled.

Implements basis::base_logger.

Definition at line 75 of file program_wide_logger.h.


The documentation for this class was generated from the following file:
Generated on Sat Jan 28 04:25:41 2012 for hoople2 project by  doxygen 1.6.3