Click or drag to resize

Log Class

Represents Mail.dll log. Use Enabled property to turn on logging.
Inheritance Hierarchy
SystemObject
  Limilabs.MailLog

Namespace:  Limilabs.Mail
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
public class Log

The Log type exposes the following members.

Constructors
  NameDescription
Public methodLog
Initializes a new instance of the Log class
Top
Properties
  NameDescription
Public propertyStatic memberDataCutOffLength
Gets or sets the maximum amount of bytes to be logged when logging single data command for IMAP and SMTP. MaxValue is default.
Public propertyStatic memberEnabled
Gets or sets a value indicating whether logging is enabled or disabled. You can observe the log on standard VS output -or- subscribe to WriteLine event -or- use application's config file to turn on logging and add your own listeners.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventStatic memberWriteLine
You can subscribe your logging library to this event.
Top
Remarks
You can use following xml in your configuration file to log to file:
<configuration><system.diagnostics><trace autoflush="true" /><switches><add name="Mail.dll" value="Verbose" /></switches><sources><source name="Mail.dll"><listeners><add name="MailLogFile" /></listeners></source></sources><sharedListeners><add name="MailLogFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\mail.log" /></sharedListeners></system.diagnostics></configuration>
See Also