Export (0) Print
Expand All

HttpResponse.AppendToLog Method

Adds custom log information to the IIS log file.

[Visual Basic]
Public Sub AppendToLog( _
   ByVal param As String _
)
[C#]
public void AppendToLog(
 string param
);
[C++]
public: void AppendToLog(
 String* param
);
[JScript]
public function AppendToLog(
   param : String
);

Parameters

param
The text to add to the log file.

Example

The following example appends a string to the log.

[Visual Basic] 
Response.AppendToLog("Page delivered")
    

[C#] 
Response.AppendToLog("Page delivered");
    

[C++] 
Response->AppendToLog(S"Page delivered");


[JScript] 
Response.AppendToLog("Page delivered")
    

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

Show:
© 2014 Microsoft