log4cpp 1.1.6
Loading...
Searching...
No Matches
SmtpAppender.hh
Go to the documentation of this file.
1/*
2 * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
3 * Copyright 2002, Bastiaan Bakker. All rights reserved.
4 *
5 * See the COPYING file for the terms of usage and distribution.
6 */
7
8#if !defined(h_2c5af17f_8daf_418f_acb8_5cfce724ec1a)
9#define h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
10
11#if defined(LOG4CPP_HAVE_BOOST)
12#include <boost/version.hpp>
13#if BOOST_VERSION > 103400
14
15#include "LayoutAppender.hh"
16#include "Portability.hh"
17
18namespace log4cpp {
19 class LOG4CPP_EXPORT SmptAppender : public LayoutAppender {
20 public:
21 struct mail_params;
22
23 SmptAppender(const std::string& name, const std::string& host, const std::string& from, const std::string& to,
24 const std::string& subject);
25 virtual ~SmptAppender();
26 virtual void close() {}
27
28 protected:
29 virtual void _append(const LoggingEvent& event);
30
31 private:
32 mail_params* mail_params_;
33 };
34} // namespace log4cpp
35
36#endif // BOOST_VERSION >= 103400
37#endif // LOG4CPP_HAS_BOOST
38#endif // h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
#define LOG4CPP_EXPORT
Definition Export.hh:26
LayoutAppender is a common superclass for all Appenders that require a Layout.
Definition LayoutAppender.hh:24
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16