4 ms·
> Am I the only person that doesn't want logging to block or buffer? If it's an error that you're logging the moment before you crash, then you probably want i
by haberman 16y ago
> Am I the only person that doesn't want logging to block or buffer?
If it's an error that you're logging the moment before you crash, then you probably want it to block.
At Google LOG(ERROR) blocks but LOG(INFO) doesn't, for this reason.
- jrockway 16y agoSmart! I think it might finally be time for me to send my resume in the direction of Google ;)
- rbanffy 16y agoFor this very same reason you should have separate ring buffers for different types of log. I would prefer to overwrite INFO entries but not access entries - because we have to frequently deal with court orders that require us to provide access logs. It's relatively rare to use production server error logs - we only need them when things go very wrong and we try to avoid that.