Customize the log configuration settings of ConnectALL to use advanced log ratation strategies. By Default ConnectALL logs in to
mule-app-ConnectAll-2.xxxx.log based on the ConnectALL version you are running. The log files are typically rolled over every day, but in many cases the size of the log files grows over 1 Gig during peak loads which makes it impossible to open the log files are share with the support teams.
Follow the below steps to configure the log ratation based on your needs.
Log4j2 based configuration is used from Mule 3.6. So this will not work in lower version of Mule
Steps to configure the logging
- Stop the mule service
- Go to
log4j2.xmlin your favorite editor
- Configure the logging options as given in examples below
- Save the configurations
- Restart your mule service
Make sure to change the value of
app.version property in the example configurations based on your ConnectALL versions before using them.
For SizeBasedTriggering policy the sizes can be set in KB, MB and GB, and also you can specify the count of log files to be rolled over in DefaultRolloverStrategy
In the sample for TimeBasedTriggering policy we rollover based on dates, and also zip the files for archiving