kupiakos / LapisMirror

Mirrors images from various sites, and exports them to mirrors like imgur. Plugin-based.
MIT License
19 stars 6 forks source link

Reducing the size of the log #46

Open spiral6 opened 7 years ago

spiral6 commented 7 years ago

I love LapisMirror and the ability to log everything it does.

However, I've been running it long enough that the log for my derivative, VelvetBot, has reached 300 MB of size. I propose that we keep only, say, about the 10 most recent logs, with each log only being created when it is run. If it is run for an 11th time, delete the oldest log and create a new one.

Or maybe it's a non-issue? Discuss here.

kupiakos commented 7 years ago

TBH, I run on Heroku, which just logs to stdout and then autorotates its logs. I'm not opposed to log rotation, but I'd rather use an existing library if possible.