The messages are written to the Application event log. Use the Event Viewer to view the logged events.
The bstrScriptName can be any string value, but it is recommended that you keep the value the same as the script file name.
The following table displays the valid values for the wSeverity parameter:
|
Value
|
Definition
|
| 1 | Error event |
| 2 | Warning event |
| 4 | Information event |