Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Scrivere nei LOG

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

Scarica il Codice...


Stampa la pagina


 








Inizio pagina

risorse per webmaster