rotate logs, limit total logging to 50MB