Per scrivere nei Log di IIS ed NT
IIS
<%
Response.AppendToLog “Scritto da ASP”
%>
Nota:
Occorre attivare l'opzione “URL Stream” in "Extended Properties” di MMC.
NT
<%
Set objShell = CreateObject("WScript.Shell")
ObjShell.LogEvent val, "Errore in miapagina.asp "
Set objShell = Nothing
%>
Dove val specifica il tipo di messaggio, e che può avere uno di questi valori:
0 – Success
1 – Error
2 – Warning
4 – Information
![]()