The Command Line Interface

API Overview, Getting Started Logging, Samples

Command line logging is supported through the use of the PBLog.exe program. This is useful when logging from batch files or shell scripts or for simply adding a comment inline like, “Starting test suite 7 now…”. It is installed to the system32 directory so it is always on the path and can be invoked from the command line or from the Start | Run menu pick on the task bar.

The syntax is:

PBLog.exe [OPTIONS] [message text]

Switch Option Usage Remarks
-? Display help   Displays command line help.
-H Display help   Displays command line help.
-M Message type Followed by one of: NVISWEBRCU[nnn] Example: -MV logs a VERBOSE message
-C Component -CMyComponent
-K MessageKey -ASomeMessageKey
-X Context -XTheContext
-O Module -OW:\Bin\MyScript.csh
-F File -FW:\Bin\MyScript.csh
-L Line -L123 Decimal is always assumed.
-P PID -P0x1234 Hex is assumed. ‘0x’ prefix is not required.
-T TID -T0x1234 Hex is assumed. ‘0x’ prefix is not required.
-N NoReturnCodes Followed by 'T' or 'F'. Enables/disables diagnostic return codes.
-- End of options -- All remaining args are message text.

Syntax

Remarks