The code copy is as follows:
<%
Response.AppendToLog "Database is being accessed"
%>
After executing this code, the following string may appear in your IIS log:
The code copy is as follows:
127.0.0.1,-,01/01/00,12:00:34,W3SVC1,WEBSERVER,127.0.0.1,161342,485,228,200,0,get,/somefile.asp,The database is being accessed
Note: Since the contents in the log file are separated by commas, the log contents written should be avoided.