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