Appendix F. Logging utility sub routines for Windows systems
IBM Prerequisite Scanner has a set of common logging sub routines in the
preq.vbs file for displaying messages on screen or writing to the log file.
Table 34 describes the logging utilities.
Table 34. Logging utility sub routines
Sub routine
deleteLogFile
log(level, msg)
logDebug(msg)
logError(msg)
logInfo(msg)
logScreen(msg)
logWarning(msg)
© Copyright IBM Corp. 2009, 2012
Description
Deletes the log file if it exists.
Writes the message to the log file by
using the "fmt()" on page 120 function.
The log also includes the current date
and time.
Calls the log() function, passing "DEBUG"
as the level input parameter.
Calls the log() function, passing "ERROR"
as the level input parameter.
Calls the log() function, passing "INFO"
as the level input parameter.
Writes the message to the screen.
Calls the log() function, passing
"WARNING" as the level input parameter.
Input parameters
None
v level, a string that sets the type of
message such as information or
warning
v msg, a string that represents the message
to log
msg, a string that represents the message
to log
msg, a string that represents the message
to log
msg, a string that represents the message
to log
msg, a string that represents the message
to write to the screen
msg, a string that represents the message
to log
127
Need help?
Do you have a question about the Prerequisite Scanner and is the answer not in the manual?
Questions and answers