log4cplus 2.0.8
win32debugappender.h
Go to the documentation of this file.
1// -*- C++ -*-
2// Module: Log4CPLUS
3// File: win32debugappender.h
4// Created: 12/2003
5// Author: Eduardo Francos, Odalio SARL
6//
7//
8// Copyright 2003-2017 Odalio SARL
9//
10// Licensed under the Apache License, Version 2.0 (the "License");
11// you may not use this file except in compliance with the License.
12// You may obtain a copy of the License at
13//
14// http://www.apache.org/licenses/LICENSE-2.0
15//
16// Unless required by applicable law or agreed to in writing, software
17// distributed under the License is distributed on an "AS IS" BASIS,
18// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19// See the License for the specific language governing permissions and
20// limitations under the License.
21
24#ifndef LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_
25#define LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_
26
27#include <log4cplus/config.hxx>
28
29#if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
30#pragma once
31#endif
32
33#if defined (LOG4CPLUS_HAVE_OUTPUTDEBUGSTRING)
34
35#include <log4cplus/appender.h>
36
37
38namespace log4cplus {
39
43 class LOG4CPLUS_EXPORT Win32DebugAppender
44 : public Appender
45 {
46 public:
47 // Ctors
48 Win32DebugAppender();
49 Win32DebugAppender(const log4cplus::helpers::Properties& properties);
50
51 // Dtor
52 virtual ~Win32DebugAppender();
53
54 // Methods
55 virtual void close();
56
57 protected:
58 virtual void append(const log4cplus::spi::InternalLoggingEvent& event);
59
60 private:
61 // Disallow copying of instances of this class
62 Win32DebugAppender(const Win32DebugAppender&);
63 Win32DebugAppender& operator=(const Win32DebugAppender&);
64 };
65
66} // end namespace log4cplus
67
68#endif // LOG4CPLUS_HAVE_OUTPUTDEBUGSTRING
69#endif // LOG4CPLUS_WIN32DEBUG_APPENDER_HEADER_
The internal representation of logging events.
#define LOG4CPLUS_EXPORT
Definition win32.h:141