Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

SmtpPickupDirAppender Class

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.

For a list of all members of this type, see SmtpPickupDirAppender Members.

System.Object
���log4net.Appender.AppenderSkeleton
������log4net.Appender.BufferingAppenderSkeleton
���������log4net.Appender.SmtpPickupDirAppender

[Visual�Basic]
Public�Class�SmtpPickupDirAppender
����Inherits�BufferingAppenderSkeleton
[C#]
public�class�SmtpPickupDirAppender : BufferingAppenderSkeleton

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

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.

Requirements

Namespace: log4net.Appender

Assembly: log4net (in log4net.dll)

See Also

SmtpPickupDirAppender Members | log4net.Appender Namespace