From the Server Explorer, you can view log files for the runtime instance using the Show Instance Log dialog. The following logs can be displayed:
any other logs that have a file name with a .log extension
Tip: If you use the Write to File ancillary activity when designing business processes, name the log file using a .log extension. The log will then be available for viewing from the Show Instance Log dialog.
To view log files for a runtime instance:
From the Server Explorer, right-click on a runtime instance and select Control -> Show Instance Log. The Show Instance Log dialog displays.
If there are no logs for the runtime instance, an informational message is displayed.
Select a log from the Log Files Available table. The Log Files Available table displays the log file name and the current size of the log file. Click on the File name column heading to sort the list alphabetically; click on the Size column heading to sort the list by file size.
When a log file is selected, Display Options for the file appear to the right of the Log Files Available.
Select Display Options.
Enter the number of Lines to be displayed. The default for this field is 100.
Click to select a radio button to order the display:
Display Option |
Description |
Head |
Displays the first XXX lines of the log file. |
All |
Displays all lines of the log file, regardless of the Lines setting. If the log file size is over 100,000 bytes, this option is disabled. Warning: Consider the size of the log file before selecting this option. Large log files can take longer to display and can consume system resources. |
Tail |
Displays the last XXX lines of the log file. |
Note: If you change the number of lines to be displayed, the Display Option radio button selection is cleared. Each time you change the number of lines, you must also select one of the Display Option radio buttons. The display refreshes according to the new line number and display option selections.
The selected log displays in the viewer, or body, of the dialog.
To save the log file to the project workspace for offline viewing and printing:
Saving the log to file saves the complete log file, even when a specific number of lines is specified for viewing.
Verify that the folder to which you want to save the log file exists; create a folder in the project structure if necessary. The Save to File option for the Show Instance Log dialog saves into existing Project Resource Folders only.
Follow the procedure to view the log file.
When the log file you want to save is displayed in the viewer, click Save to File. The Save File As dialog displays.
Enter or select the parent folder.
Enter the file name under which the file is to be saved.
Click OK.
The progress bar indicates the progress of the file save.
To view and print a log file saved to the project workspace:
In the Orchestration Navigator, locate the log file to be viewed or printed.
Right-click on the log file and select Open With -> Text Editor. The log displays in the Text Editor. The Text Editor can be re-sized by dragging the edges of the editor view in the perspective, or it can be maximized and minimized by double-clicking on the title bar of the editor.
To print the log file, click on the Text Editor title bar to give it focus, then select File -> Print from the perspective menu.
The Methodology tutorial shows how the Show Instance Log feature might be used when running and managing business processes.