API Documentation
00001 // Module: Log4CPLUS 00002 // File: nullappender.h 00003 // Created: 6/2003 00004 // Author: Tad E. Smith 00005 // 00006 // 00007 // Copyright (C) Tad E. Smith All rights reserved. 00008 // 00009 // This software is published under the terms of the Apache Software 00010 // License version 1.1, a copy of which has been included with this 00011 // distribution in the LICENSE.APL file. 00012 // 00013 00016 #ifndef _LOG4CPLUS_NULL_APPENDER_HEADER_ 00017 #define _LOG4CPLUS_NULL_APPENDER_HEADER_ 00018 00019 #include <log4cplus/config.h> 00020 #include <log4cplus/appender.h> 00021 #include <log4cplus/helpers/property.h> 00022 00023 00024 namespace log4cplus { 00025 00029 class LOG4CPLUS_EXPORT NullAppender : public Appender { 00030 public: 00031 // Ctors 00032 NullAppender(); 00033 NullAppender(const log4cplus::helpers::Properties& properties); 00034 00035 // Dtor 00036 virtual ~NullAppender(); 00037 00038 // Methods 00039 virtual void close(); 00040 00041 protected: 00042 virtual void append(const log4cplus::spi::InternalLoggingEvent& event); 00043 00044 private: 00045 // Disallow copying of instances of this class 00046 NullAppender(const NullAppender&); 00047 NullAppender& operator=(const NullAppender&); 00048 }; 00049 00050 } // end namespace log4cplus 00051 00052 #endif // _LOG4CPLUS_NULL_APPENDER_HEADER_ 00053