Log simulation warnings and errors and build information to file
sldiagviewer.diary intercepts build information,
warnings, and errors transmitted to the Command Window or the Diagnostic
Viewer and logs them to a text file diary.txt in
the current folder.
sldiagviewer.diary( toggles
the logging state of the text file specified by filename)filename.
sldiagviewer.diary( turns
logging to the log file on or off. The setting applies to the last
file name you specified for logging or to toggle)diary.txt if
you did not specify a file name.