FileLogger Class

IT Hit WebDAV for .NET

Provides static methods for writing to a log file.

For a list of all members of this type, see FileLogger Members.

System.Object
   ITHit.WebDAV.Logger.FileLogger

[Visual Basic]
MustInherit NotInheritable Public Class FileLogger
[C#]
public abstract sealed class FileLogger

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

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.

Important! If you host your server in IIS/ASP.NET make sure your log file is created outside of the \bin folder. If your logfile will be created in a \bin folder, your server will restart each time the logfile is updated, recycling application and session state.

Requirements

Namespace: ITHit.WebDAV.Logger

Assembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll)

See Also

FileLogger Members | ITHit.WebDAV.Logger Namespace