| UPDATED to 1.3: Tracelogerror VBScript Routine: Debugging, Logging and Error Reporting |
 |
8/29/2002 2:35 pm Contributed By: Darwin Sanoy | I hate writing and debugging the same or very similar code for 10 different scripts. Here's a routine that gives flexible execution tracing, error logging and reports interactively or to a log file. Read on for Version 1.3 Updates and Fixes
Feature highlights: reports information interactively or to a log fileUses static or randomly generated log namesCan be used for informational messages, warnings and error conditions easily added to any existing or new script allows identification of where in the code the error or trace event occured
Version 1.3 Updates: - Seperate trace levels for logging and screen display, allows verbose logging to file with only error logging to screen.
- Reads tracelevels from environment variables if they exist
- A checkerror routine that integrates with traceerrorlog
- Traceargs routine for logging script arguments that integrates with ultimateparseargsargument processing (IF PRESENT)
- Set trace levels on script command line if using ultimateparseargs argument processing (IF PRESENT)
To report bugs or submit enhancement suggestions, drop me a message at darwin@desktopengineer.com
Download Now (50Kb)
KEYWORDS: VBS, SCRIPTCODE Topic: "Scripting"
|
|
|
|