openv / vcontrold

:fire: vcontrold Daemon for control and logging of Viessmann® type heating devices
https://github.com/openv/openv/wiki
GNU General Public License v3.0
101 stars 54 forks source link

vcontrold.log auto delete needed #69

Closed passuff closed 3 years ago

passuff commented 3 years ago

I checked vcontrold.log after almost two years and its filesize grew to more than 6Gb. Is there an option what should be logged or an auto delete?

speters commented 3 years ago

Usually, a tool like "logrotate" is run via a cron job to take care of this.

logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.