null_logger.h

Go to the documentation of this file.
00001 #ifndef NULL_LOGGER_CLASS
00002 #define NULL_LOGGER_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : null_logger                                                       *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2001-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "dll_loggers.h"
00019 
00020 #include <basis/function.h>
00021 #include <basis/log_base.h>
00022 
00024 
00031 class LOGGERS_CLASS_STYLE null_logger : public log_base
00032 {
00033 public:
00034   virtual ~null_logger();
00035 
00036   IMPLEMENT_CLASS_NAME("null_logger");
00037 
00038   virtual outcome log(const istring &info, int filter = ALWAYS_PRINT);
00039 };
00040 
00042 
00044 
00046 log_base LOGGERS_FUNCTION_STYLE *set_PW_logger_for_null();
00047 
00049 #ifndef OMIT_PROGRAM_WIDE_LOGGER
00050   #define SET_DEFAULT_NULL_LOGGER { \
00051     log_base *old_log = set_PW_logger_for_null(); \
00052     WHACK(old_log); \
00053   }
00054 #else
00055   #define SET_DEFAULT_NULL_LOGGER
00056 #endif
00057 
00058 #endif
00059 

Generated on Fri Nov 28 04:29:16 2008 for HOOPLE Libraries by  doxygen 1.5.1