Adds custom log information to the Internet Information Services (IIS) log file.
Assembly: System.Web (in System.Web.dll)
To allow for the specified string to be recorded in the log file, you first must enable the URI Query option of the Extended Logging Properties dialog box for the site that you want to log activity for in IIS.
To customize extended logging in IIS 6.0, follow these steps:
In IIS Manager, expand the local computer node, expand the Web or FTP Sites folder, right-click the Web or FTP site, and then click Properties.
Click the Web or FTP Site tab, and then select the Enable logging check box (if it is not already selected).
In the Active log format box, click W3C Extended Log File Format.
Click the Advanced tab, select the properties that you want to log, and then click OK.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.