mdouchement / shigoto

A nextgen crontab.
MIT License
0 stars 0 forks source link

Add a logrotate statement #15

Open mdouchement opened 7 months ago

mdouchement commented 7 months ago

It must be used only when logs are stored in a file.

shigoto:
  task-name:
    logs_file: /shigoto/logs/rclone.log
    logrorate:
      size: 10M
      rotate: 7
      compress: true

It should also be applied on redirect of the runners

https://github.com/natefinch/lumberjack https://github.com/kjk/common/tree/main/filerotate https://pkg.go.dev/github.com/yieldr/go-log/log/logrotate https://github.com/easyCZ/logrotate