Send an email when a specific logging event occurs, typically on errors
or fatal errors. Rather than sending via smtp it writes a file into the
directory specified by
PickupDir. This allows services such
as the IIS SMTP agent to manage sending the messages.
System Object log4net.Appender AppenderSkeleton log4net.Appender BufferingAppenderSkeleton log4net.Appender SmtpPickupDirAppenderNamespace: log4net.AppenderAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
public class SmtpPickupDirAppender : BufferingAppenderSkeleton
public class SmtpPickupDirAppender : BufferingAppenderSkeleton
Public Class SmtpPickupDirAppender
Inherits BufferingAppenderSkeleton
Public Class SmtpPickupDirAppender
Inherits BufferingAppenderSkeleton
public ref class SmtpPickupDirAppender : public BufferingAppenderSkeleton
public ref class SmtpPickupDirAppender : public BufferingAppenderSkeleton
The configuration for this appender is identical to that of the SMTPAppender,
except that instead of specifying the SMTPAppender.SMTPHost you specify
PickupDir.
The number of logging events delivered in this e-mail depend on
the value of BufferSize option. The
SmtpPickupDirAppender keeps only the last
BufferSize logging events in its
cyclic buffer. This keeps memory requirements at a reasonable level while
still delivering useful application context.