null_logger.h File Reference

#include "dll_loggers.h"
#include <basis/function.h>
#include <basis/log_base.h>

Include dependency graph for null_logger.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Defines

#define SET_DEFAULT_NULL_LOGGER
 retasks the program-wide logger as a null_logger to turn off logging.

Functions

log_base LOGGERS_FUNCTION_STYLE * set_PW_logger_for_null ()
 retasks the program wide logger to use a new null_logger.


Define Documentation

#define SET_DEFAULT_NULL_LOGGER

Value:

{ \
    log_base *old_log = set_PW_logger_for_null(); \
    WHACK(old_log); \
  }
retasks the program-wide logger as a null_logger to turn off logging.

Definition at line 50 of file null_logger.h.

Referenced by program_wide_logger(), and program_wide_cleanup::~program_wide_cleanup().


Function Documentation

log_base LOGGERS_FUNCTION_STYLE* set_PW_logger_for_null (  ) 

retasks the program wide logger to use a new null_logger.

the original log_base object is returned and must be dealt with appropriately.

Definition at line 26 of file null_logger.cpp.

References retask_program_wide_logger().


Generated on Fri Nov 28 04:30:09 2008 for HOOPLE Libraries by  doxygen 1.5.1