[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: |
|
||||||||
| 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 :
so the required change here seems to be just: log4j2.appender.rolling.strategy.max =10 I'd like to settle |
| Comment by Michael Vorburger [ 31/May/18 ] |
|
Unassigning issue from me, as I'm discouraged to further contribute to odlparent logging due to |