Click or drag to resize

FileLogger Class

IT Hit WebDAV Classes Reference
Provides static methods for writing to a log file.
Inheritance Hierarchy

Namespace:  ITHit.WebDAV.Client.Logger
Assemblies:   ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
public static class FileLogger

The FileLogger type exposes the following members.

Public propertyStatic memberFileSize
Gets and sets maximum log file size in bytes.
Public propertyStatic memberLevel
Gets and sets how much information is written to log file.
Public propertyStatic memberLogFile
Gets and sets log file name and path.
Public propertyStatic memberMaxBackups
Gets and sets Maximum number of log file backups.
Public propertyStatic memberXmlFormatting
Gets and sets possibility to format xml when writing it down to log file
Public methodStatic memberWriteMessage(String)
Writs a message to a log file with level Info.
Public methodStatic memberCode exampleWriteMessage(String, LogLevel)
Writs a message to a log file with a specified log level.

By default the log file is created in the folder where the calling assembly resides. You can specify the folder and file name setting LogFile property. Amount of output and maximum file size are controlled via Level and FileSize properties.

See Also