a trash can for logging; throws away all entries. More...
#include <program_wide_logger.h>


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". | |
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.
| virtual loggers::null_logger::~null_logger | ( | ) | [inline, virtual] |
Definition at line 73 of file program_wide_logger.h.
| 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.
1.6.3