Setting up a rotation logfile
There are few cases where the amount of log information becomes so huge that they are impossible to handle. For that reason, we can configure the logfiles to rotate size-based, time-based, or both.
Getting ready…
This recipe can be considered as a fine-tune addition to the Logging to a custom file recipe. We will simply expand on this recipe by adding rotation capabilities to our custom logfile.
How to do it…
We can define the rotation logfile by logging in to the Oracle Enterprise Manager Console and then right-clicking on the soa-infra node. Then, select Logs and Log Configuration. In the Log Configuration window, select the logfile definition and click on the Edit Configuration… button as shown in the following screenshot:
In the Edit Log File window, we define the rotation policy for the selected logfile as shown in the following screenshot:
Click on the OK button to confirm the changes. There is no need to restart the Oracle SOA Suite server for changes to take...