by deweerdt · 11y ago · 0 comments
Aren't you incurring a cost for logging for stuff that would end up being thrown out?
This also removes the rather heisenbergian issue of turning on and off debug logging. In a lot of application turning on debug logging is a surefire way of making sure any race conditions won't occur.
It also means that logging (to disk) will not occur in the performance critical bits of the code. The logging will be fully asynchronous as completely different process will be given the task of persisting the logs.