Click or drag to resize

LogLevel Enumeration

IT Hit WebDAV Classes Reference
Type of information being logged.

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
Syntax
public enum LogLevel
Members
  Member nameValueDescription
All0 All messages will be written to log.
Debug1 Messages with LogLevel.Debug level will be written to log.
Info2 Messages with LogLevel.Info level will be written to log.
Warn3 Messages with LogLevel.Warn level will be written to log.
Error4 Messages with LogLevel.Error level will be written to log.
Fatal5 Messages with LogLevel.Fatal level will be written to log.
Off6 No messages will be written to log.
Examples
FileLogger.LogFile = "C:\WebDAV\WebDAVClientLog.txt"; // C:\WebDAV\ must exist and the application must have enough permission to write and create files in this folder
FileLogger.Level = LogLevel.Warn;
FileLogger.WriteMessage("My error message", LogLevel.Error); // this message will be written to the log file
FileLogger.WriteMessage("My debug message", LogLevel.Debug); // this message will not be written to the log file
FileLogger.WriteMessage("My info message"); // this message will not be written to the log file
See Also