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 "Portability.hh"
16 #include "LayoutAppender.hh"
17 
18 namespace log4cpp
19 {
20  class LOG4CPP_EXPORT SmptAppender : public LayoutAppender
21  {
22  public:
23  struct mail_params;
24 
25  SmptAppender(const std::string& name, const std::string& host, const std::string& from,
26  const std::string& to, const std::string& subject);
27  virtual ~SmptAppender();
28  virtual void close() { }
29 
30  protected:
31  virtual void _append(const LoggingEvent& event);
32 
33  private:
34  mail_params * mail_params_;
35  };
36 }
37 
38 #endif // BOOST_VERSION >= 103400
39 #endif // LOG4CPP_HAS_BOOST
40 #endif // h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
#define LOG4CPP_EXPORT
Definition: Export.hh:26


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:14:17