log4cpp  1.1.6
AbortAppender.hh
Go to the documentation of this file.
1 /*
2  * AbortAppender.hh
3  *
4  * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5  * Copyright 2002, Bastiaan Bakker. All rights reserved.
6  *
7  * See the COPYING file for the terms of usage and distribution.
8  */
9 
10 #ifndef _LOG4CPP_ABORTAPPENDER_HH
11 #define _LOG4CPP_ABORTAPPENDER_HH
12 
14 #include <log4cpp/Portability.hh>
15 
16 namespace log4cpp {
17 
25  public:
26  AbortAppender(const std::string& name);
27  virtual ~AbortAppender();
28 
29  virtual bool reopen();
30  virtual void close();
31 
36  virtual bool requiresLayout() const;
37 
38  virtual void setLayout(Layout* layout);
39 
40  protected:
41  virtual void _append(const LoggingEvent& event);
42  };
43 } // namespace log4cpp
44 
45 #endif // _LOG4CPP_ABORTAPPENDER_HH
This Appender causes the application to abort() upon the first append() call.
Definition: AbortAppender.hh:24
AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already takes care of...
Definition: AppenderSkeleton.hh:24
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
#define LOG4CPP_EXPORT
Definition: Export.hh:26
The top level namespace for all &#39;Log for C++&#39; types and classes.
Definition: AbortAppender.hh:16
The internal representation of logging events.
Definition: LoggingEvent.hh:32