By default, Purify outputs error data to the Purify Viewer You can save error data from the Viewer as follows:
To save the current error data in a binary view file (.pv), select File > Save as . . .
To save the current error data in an ASCII text log file (.plog), select File > Export . . .
You can also save error data without displaying the Viewer, which is especially useful in automated testing. To do this, set output options in the Purify command line, as follows.
To redirect Purify output to a view file without starting the Viewer, set the option -view-file=<filename>.pv> . (To save output and also display the Viewer, set the option -windows=yes as well.)
To redirect Purify messages to a log file, set the option -log-file=<filename.plog>. (Use the -output-limit option to restrict the size of the log file if you need to conserve disk space.)
You can also use standard shell file redirection syntax to redirect Purify output to a text file when you run the instrumented program. For example, after compiling and linking with Purify, you can run the program as follows:
csh |
% a.out >& a.out.messages |
sh, ksh |
$ a.out 2> a.out.messages |