[ODLPARENT-153] ODL karaf.log should delete log files older than N on rolling over Created: 24/Apr/18  Updated: 13/Mar/19  Resolved: 13/Mar/19

Status: Resolved
Project: odlparent
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Medium
Reporter: Michael Vorburger Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
is blocked by ODLPARENT-154 ODL karaf.log should rotate at 64MB i... Resolved

 Description   

OpenDaylight's karaf.log will rotate, but never delete old files, and grow forever.

We should tweak the logging to use https://logging.apache.org/log4j/2.x/manual/appenders.html#CustomDeleteOnRollover.

The default configuraton should be "large" window; people can then customize this, if we just show an example.



 Comments   
Comment by Michael Vorburger [ 26/Apr/18 ]

dfarrell07 commented in https://git.opendaylight.org/gerrit/#/c/71300/ that :

We also reduce the number of roll-overs from 10 to 2 in integration/packaging/puppet-opendaylight.

so the required change here seems to be just:

log4j2.appender.rolling.strategy.max =10

I'd like to settle ODLPARENT-154 re. file size before this.

Comment by Michael Vorburger [ 31/May/18 ]

Unassigning issue from me, as I'm discouraged to further contribute to odlparent logging due to ODLPARENT-154.

Generated at Wed Feb 07 20:27:47 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.