Namespace: ITHit.WebDAV.Client.Logger
Member name | Value | Description | |
---|---|---|---|
All | 0 | All messages will be written to log. | |
Debug | 1 | Messages with LogLevel.Debug level will be written to log. | |
Info | 2 | Messages with LogLevel.Info level will be written to log. | |
Warn | 3 | Messages with LogLevel.Warn level will be written to log. | |
Error | 4 | Messages with LogLevel.Error level will be written to log. | |
Fatal | 5 | Messages with LogLevel.Fatal level will be written to log. | |
Off | 6 | No messages will be written to log. |
FileLogger.LogFile = "C:\WebDAV\WebDavSessionLog.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