> is that you will spend most of your time formatting strings if you do your file I/O asynchronously.
That's why you are supposed to do your formatting in the background thread :).
> doesn't matter how many millions of logs you can generate per second
Usually the issue is not generating millions of line of logs (in whitch case dispatching to a background thread just adds overhead), but being able to log with minimal overhead on the surrounding code.
That's why you are supposed to do your formatting in the background thread :).
> doesn't matter how many millions of logs you can generate per second
Usually the issue is not generating millions of line of logs (in whitch case dispatching to a background thread just adds overhead), but being able to log with minimal overhead on the surrounding code.