log4cpp
1.1.1
include
log4cpp
SmtpAppender.hh
Go to the documentation of this file.
1
#if !defined(h_2c5af17f_8daf_418f_acb8_5cfce724ec1a)
2
#define h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
3
4
#if defined(LOG4CPP_HAVE_BOOST)
5
#include <boost/version.hpp>
6
#if BOOST_VERSION > 103400
7
8
#include "
Portability.hh
"
9
#include "
LayoutAppender.hh
"
10
11
namespace
log4cpp
12
{
13
class
LOG4CPP_EXPORT
SmptAppender :
public
LayoutAppender
14
{
15
public
:
16
struct
mail_params;
17
18
SmptAppender(
const
std::string& name,
const
std::string& host,
const
std::string& from,
19
const
std::string& to,
const
std::string& subject);
20
virtual
~SmptAppender();
21
virtual
void
close() { }
22
23
protected
:
24
virtual
void
_append(
const
LoggingEvent& event);
25
26
private
:
27
mail_params * mail_params_;
28
};
29
}
30
31
#endif // BOOST_VERSION >= 103400
32
#endif // LOG4CPP_HAS_BOOST
33
#endif // h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
Portability.hh
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:19
log4cpp
The top level namespace for all 'Log for C++' types and classes.
Definition:
AbortAppender.hh:16
LayoutAppender.hh
Generated by
1.8.13