Configuring production-ready logging in Apache Karaf
One of the first tasks administrators of Apache Karaf undertake is changing the default logging configuration to more production-ready settings.
To improve the default logging configuration, we'll perform the following tasks:
- Update the logfile location to be outside the data folder. This helps administrators avoid accidentally wiping out logfiles when deleting runtime data.
- Increase the logfile size. The default size of 1 MB is too small for most production deployments. Generally, we set this to 50 or 100 MB, depending on the available disk space.
- Increase the number of logfiles we retain. There is no correct number of logfiles to retain. However, when disk space is cheap and available, keeping ...