LapisMirror icon indicating copy to clipboard operation
LapisMirror copied to clipboard

Reducing the size of the log

Open spiral6 opened this issue 7 years ago • 1 comments

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.

spiral6 avatar Jan 23 '17 04:01 spiral6

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.

kupiakos avatar Jan 23 '17 23:01 kupiakos