log4cpp 1.1

SmtpAppender.hh

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
00003  * Copyright 2002, Bastiaan Bakker. All rights reserved.
00004  *
00005  * See the COPYING file for the terms of usage and distribution.
00006  */
00007 
00008 #if !defined(h_2c5af17f_8daf_418f_acb8_5cfce724ec1a)
00009 #define h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
00010 
00011 #if defined(LOG4CPP_HAVE_BOOST)
00012 #include <boost/version.hpp>
00013 #if BOOST_VERSION > 103400
00014 
00015 #include "Portability.hh"
00016 #include "LayoutAppender.hh"
00017 
00018 namespace log4cpp
00019 {
00020    class LOG4CPP_EXPORT SmptAppender : public LayoutAppender
00021    {
00022       public:
00023          struct mail_params;
00024 
00025          SmptAppender(const std::string& name, const std::string& host, const std::string& from, 
00026                       const std::string& to, const std::string& subject);
00027          virtual ~SmptAppender();
00028          virtual void close() { }
00029       
00030       protected:
00031          virtual void _append(const LoggingEvent& event);
00032 
00033       private:
00034          mail_params * mail_params_;
00035    };
00036 }
00037 
00038 #endif // BOOST_VERSION >= 103400
00039 #endif // LOG4CPP_HAS_BOOST
00040 #endif // h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines