假如设置了服务器,以W3C Extended Log File Format格式将请求记录到一个文本文件,可使用Response.AppendToLog方法在日志文件条目的结尾处添加一条消息字符串。若想为特定的网页存储一些值或消息,或在脚本中出现了特定的情况时,这种方式是非常有用的。 例如,通过的Intranet的“stationary order”应用程序,可以记录超过特定的条目数目的雇员的部门号码: ... If intItemCount > 25 Then Response.AppendToLog “Large order from ‘” & strDept & department.” End If ...