J
Fri Jan 28 15:23:12 CST 2005
"Tom Ker" <thomasDOTkerA@ThighmarkDOTcom> wrote in message
news:uzN90$VBFHA.2112@TK2MSFTNGP14.phx.gbl...
> object.LogEvent(intType, strMessage [,strTarget])
>
> Using VBScript...
>
> Is there a limit to the length of "strMessage"?
>
> Is it possible to put a hyperlink in "strMessage" (aside from the one
> Windows adds) so the user could click to get more info?
No, according to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/logging_guidelines.asp.
> Is "intType" restricted to the 6 values listed in the WSH documentation?
> If not, how can I put my own values in?
>
> Is it possible to change event source from WSH to, say, the name of the
> script?
You can change the source name using STMAdmin.DLL, available from
http://cwashington.netreach.net/main/tools/default.asp?topic=n-z. Doco at
http://cwashington.netreach.net/main/library/stmadmin.html
Note it says that WMI/WBEM obsoletes this control, so you might want to
investigate that method of writing to the event log.