HttpResponse.AppendToLog(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds custom log information to the Internet Information Services (IIS) log file.
public:
void AppendToLog(System::String ^ param);
public void AppendToLog (string param);
member this.AppendToLog : string -> unit
Public Sub AppendToLog (param As String)
Parameters
- param
- String
The text to add to the log file.
Examples
The following example shows how to append a string to the log.
Response.AppendToLog("Page delivered");
Response.AppendToLog("Page delivered")
Remarks
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 Properties.
Click the Advanced tab, select the properties that you want to log, and then click OK.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om