Iis 7 404 asp中写入系统日志的错误页面

Iis 7 404 asp中写入系统日志的错误页面,iis-7,asp-classic,syslog,Iis 7,Asp Classic,Syslog,我有一个自定义404页,是用经典的ASP。我试图设置当页面被点击时,它应该通过syslog发送一个日志。 我该怎么写呢 您可以使用以下方式从经典ASP记录事件: dim WshShell set WshShell = Server.CreateObject("WScript.Shell") wshshell.Logevent 1, "Page not found - your message here!" set wshshell=nothing 您可以找到更多详细信息,例如上的不同警告级别

我有一个自定义404页,是用经典的ASP。我试图设置当页面被点击时,它应该通过syslog发送一个日志。
我该怎么写呢

您可以使用以下方式从经典ASP记录事件:

dim WshShell
set WshShell = Server.CreateObject("WScript.Shell")
wshshell.Logevent 1, "Page not found - your message here!"
set wshshell=nothing
您可以找到更多详细信息,例如上的不同警告级别