00001 // Module: Log4CPLUS 00002 // File: win32debugappender.h 00003 // Created: 12/2003 00004 // Author: Eduardo Francos, Odalio SARL 00005 // 00006 // 00007 // Copyright 2003-2009 Odalio SARL 00008 // 00009 // Licensed under the Apache License, Version 2.0 (the "License"); 00010 // you may not use this file except in compliance with the License. 00011 // You may obtain a copy of the License at 00012 // 00013 // http://www.apache.org/licenses/LICENSE-2.0 00014 // 00015 // Unless required by applicable law or agreed to in writing, software 00016 // distributed under the License is distributed on an "AS IS" BASIS, 00017 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 // See the License for the specific language governing permissions and 00019 // limitations under the License. 00020 00023 #ifndef _LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_ 00024 #define _LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_ 00025 00026 #include "dcmtk/oflog/config.h" 00027 #if defined(_WIN32) 00028 00029 #include "dcmtk/oflog/appender.h" 00030 #include "dcmtk/oflog/helpers/property.h" 00031 00032 00033 namespace log4cplus { 00034 00038 class LOG4CPLUS_EXPORT Win32DebugAppender 00039 : public Appender 00040 { 00041 public: 00042 // Ctors 00043 Win32DebugAppender(); 00044 Win32DebugAppender(const log4cplus::helpers::Properties& properties, tstring& error); 00045 00046 // Dtor 00047 virtual ~Win32DebugAppender(); 00048 00049 // Methods 00050 virtual void close(); 00051 00052 protected: 00053 virtual void append(const log4cplus::spi::InternalLoggingEvent& event); 00054 00055 private: 00056 // Disallow copying of instances of this class 00057 Win32DebugAppender(const Win32DebugAppender&); 00058 Win32DebugAppender& operator=(const Win32DebugAppender&); 00059 }; 00060 00061 } // end namespace log4cplus 00062 00063 #endif // _WIN32 00064 #endif // _LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_ 00065