"Fossies" - the Fresh Open Source Software Archive

Member "hermes-1.9/src/NullLogger.h" (29 Jun 2014, 1224 Bytes) of package /linux/privat/hermes-1.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "NullLogger.h" see the Fossies "Dox" file reference documentation.

    1 /**
    2  * hermes antispam proxy
    3  * Copyright (C) 2006, 2007 Juan José Gutiérrez de Quevedo <juanjo@gutierrezdequevedo.com>
    4  *
    5  * This program is free software; you can redistribute it and/or modify
    6  * it under the terms of the GNU General Public License as published by
    7  * the Free Software Foundation; version 2 of the License
    8  *
    9  * This program is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12  * GNU General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU General Public License along
   15  * with this program; if not, write to the Free Software Foundation, Inc.,
   16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
   17  *
   18  * @author Juan José Gutiérrez de Quevedo <juanjo@gutierrezdequevedo.com>
   19  */
   20 #ifndef NULLLOGGER_H
   21 #define NULLLOGGER_H
   22 
   23 #include <string>
   24 
   25 #include "Logger.h"
   26 
   27 using namespace std;
   28 
   29 /**
   30  * this logger implements a null logger
   31  * messages added to this logger go nowhere
   32  *
   33  * @see Logger
   34  */
   35 class NullLogger: public Logger
   36 {
   37   public:
   38     void addMessage(string,int,int,string){}; //ignore messages
   39 };
   40 
   41 #endif //NULLLOGGER_H