Click or drag to resize

Log Class

Represents Ftp.dll log. Use Enabled property to turn on logging.
Inheritance Hierarchy
SystemObject
  Limilabs.FTPLog

Namespace:  Limilabs.FTP
Assembly:  Ftp (in Ftp.dll) Version: 2.0.22214.1022
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 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="Ftp.dll" value="Verbose" /></switches><sources><source name="Ftp.dll"><listeners><add name="FtpLogFile" /></listeners></source></sources><sharedListeners><add name="FtpLogFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\ftp.log" /></sharedListeners></system.diagnostics></configuration>
See Also