18#ifndef _LOG4CXX_NET_SMTP_H
19#define _LOG4CXX_NET_SMTP_H
75 SMTPAppender(
const SMTPAppender&);
76 SMTPAppender& operator=(
const SMTPAppender&);
84 bool checkEntryConditions();
98 SMTPAppender(LOG4CXX_NS::
helpers::Pool& p);
104 SMTPAppender(
spi::TriggeringEventEvaluatorPtr evaluator);
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
Send an e-mail when a specific logging event occurs, typically when an ERROR level logging event is s...
Definition smtpappender.h:72
void setCc(const LogString &to)
The Cc option takes a string value which should be a comma separated list of e-mail address of the cc...
LogString getEvaluatorClass()
Returns value of the EvaluatorClass option.
void setLocationInfo(bool locationInfo)
The LocationInfo option is provided for compatibility with log4j and has no effect in log4cxx.
LogString getSMTPUsername() const
Returns value of the SMTPUsername option.
void setSMTPPassword(const LogString &newVal)
The SMTPPassword option takes a string value which should be a the password for the SMTP server.
LogString getSMTPHost() const
Returns value of the SMTPHost option.
log4cxx::spi::TriggeringEventEvaluatorPtr getEvaluator() const
Gets the current triggering evaluator.
void setSMTPHost(const LogString &smtpHost)
The SMTPHost option takes a string value which should be a the host name of the SMTP server that will...
void setSMTPUsername(const LogString &newVal)
The SMTPUsername option takes a string value which should be a the user name for the SMTP server.
LogString getTo() const
Returns value of the To option.
void close() override
Release any resources allocated within the appender such as file handles, network connections,...
void setSMTPPort(int port)
The SMTPPort option takes a string value which should be a the port of the SMTP server that will send...
LogString getSMTPPassword() const
Returns value of the SMTPPassword option.
bool getLocationInfo() const
Returns value of the LocationInfo option.
LogString getSubject() const
Returns value of the Subject option.
void setTo(const LogString &to)
The To option takes a string value which should be a comma separated list of e-mail address of the re...
int getSMTPPort() const
Returns value of the SMTPHost option.
LogString getCc() const
Returns value of the cc option.
void setEvaluator(log4cxx::spi::TriggeringEventEvaluatorPtr &trigger)
Sets the triggering evaluator.
void sendBuffer(log4cxx::helpers::Pool &p)
Send the contents of the cyclic buffer as an e-mail message.
void setFrom(const LogString &from)
The From option takes a string value which should be a e-mail address of the sender.
LogString getFrom() const
Returns value of the From option.
void setSubject(const LogString &subject)
The Subject option takes a string value which should be a the subject of the e-mail message.
void setOption(const LogString &option, const LogString &value) override
Set option to value.
int getBufferSize() const
Returns value of the BufferSize option.
void setEvaluatorClass(const LogString &value)
The EvaluatorClass option takes a string value representing the name of the class implementing the sp...
void setBufferSize(int bufferSize)
The BufferSize option takes a positive integer representing the maximum number of logging events to c...
void activateOptions(helpers::Pool &p) override
Activate the options that were previously set with calls to option setters.
LogString getBcc() const
Returns value of the bcc option.
void setBcc(const LogString &to)
The Bcc option takes a string value which should be a comma separated list of e-mail address of the b...
bool requiresLayout() const override
The SMTPAppender requires a Layout.
void append(const spi::LoggingEventPtr &event, helpers::Pool &p) override
Perform SMTPAppender specific appending actions, mainly adding the event to a cyclic buffer and check...
Definition propertysetter.h:27
Definition smtpappender.h:29
LOG4CXX_PTR_DEF(SMTPAppender)
std::basic_string< logchar > LogString
Definition logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:158
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:43
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:164
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146