To add a Publish to File drag from the Publish to File rule from the Workflow Library and drop to the Workflow Tree where you want to add it. This will automatically open the Publish to File window for the configuration of the publisher.
In the Publish to File window, specify the connection information to publish to the log file.
Name: Enter the name of the publisher. (This name must be unique).
- Number of logged jobs: Indicates the number of jobs to retain at the logger (default is 5).
- Log file type: Choose between the two options to log files
- File name: Is the path to the file where the jobs are going to be written, the default is log/${app.name}/publishToFile.jobs. This option will manage one file
- Log file directory: Is the path to the file where the jobs are going to be written, the default is log/${app.name}/publishToFileLogs. This option will create one log file for each batch it receives.
- Debug: Check if you want to run the publisher in debug mode.
- Click on the Add button.