log4shib 2.0.1
Loading...
Searching...
No Matches
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 _LOG4SHIB_ABORTAPPENDER_HH
11#define _LOG4SHIB_ABORTAPPENDER_HH
12
15
16namespace log4shib {
17
25 public:
26
27 AbortAppender(const std::string& name);
28 virtual ~AbortAppender();
29
30 virtual bool reopen();
31 virtual void close();
32
37 virtual bool requiresLayout() const;
38
39 virtual void setLayout(Layout* layout);
40
41 protected:
42 virtual void _append(const LoggingEvent& event);
43 };
44}
45
46#endif // _LOG4SHIB_ABORTAPPENDER_HH
#define LOG4SHIB_EXPORT
Definition Export.hh:11
virtual void setLayout(Layout *layout)
Set the Layout for this appender.
Definition AbortAppender.cpp:40
virtual void _append(const LoggingEvent &event)
Log in Appender specific way.
Definition AbortAppender.cpp:28
virtual bool reopen()
Reopens the output destination of this Appender, e.g.
Definition AbortAppender.cpp:32
AbortAppender(const std::string &name)
Definition AbortAppender.cpp:16
virtual void close()
Release any resources allocated within the appender such as file handles, network connections,...
Definition AbortAppender.cpp:24
virtual bool requiresLayout() const
The AbortAppender does not layout.
Definition AbortAppender.cpp:36
AppenderSkeleton(const std::string &name)
Constructor for AppenderSkeleton.
Definition AppenderSkeleton.cpp:15
Extend this abstract class to create your own log layout format.
Definition Layout.hh:22
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
The internal representation of logging events.
Definition LoggingEvent.hh:32