admin
2022-08-18 67a5e3d825fde17b7b00906ce42b0bd8cafebc4e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
 * Copyright 2002, Bastiaan Bakker. All rights reserved.
 *
 * See the COPYING file for the terms of usage and distribution.
 */
 
#if !defined(h_2c5af17f_8daf_418f_acb8_5cfce724ec1a)
#define h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
 
#if defined(LOG4CPP_HAVE_BOOST)
#include <boost/version.hpp>
#if BOOST_VERSION > 103400
 
#include "Portability.hh"
#include "LayoutAppender.hh"
 
namespace log4cpp
{
   class LOG4CPP_EXPORT SmptAppender : public LayoutAppender
   {
      public:
         struct mail_params;
 
         SmptAppender(const std::string& name, const std::string& host, const std::string& from, 
                      const std::string& to, const std::string& subject);
         virtual ~SmptAppender();
         virtual void close() { }
      
      protected:
         virtual void _append(const LoggingEvent& event);
 
      private:
         mail_params * mail_params_;
   };
}
 
#endif // BOOST_VERSION >= 103400
#endif // LOG4CPP_HAS_BOOST
#endif // h_2c5af17f_8daf_418f_acb8_5cfce724ec1a