Wrights a message to a log file with a specified log level.
FileLogger.LogFile = "C:\WebDAV\WebDAVServerLog.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
FileLogger Class | ITHit.WebDAV.Logger Namespace | FileLogger.WriteMessage Overload List