stumpapp / stump

A free and open source comics, manga and digital book server with OPDS support (WIP)
https://stumpapp.dev
MIT License
863 stars 34 forks source link

Rolling logs #187

Open aaronleopold opened 8 months ago

aaronleopold commented 8 months ago

Currently Stump generates/appends to a single log file and has no logic for automatically cleaning it up. There are API endpoints and other utility functions around wiping the log file, but I think it would be quite easy and less hassle to introduce rolling log. On a memory constrained machine, if someone were to set a verbose log level, this could easily OOM for a very actively used server

aaronleopold commented 8 months ago

If I want anything other than a limited set of options: https://github.com/tokio-rs/tracing/issues/778