Default LOG_CONCURRENCY=1 if LOG_FORMAT=tty
pbrisbin opened this issue · comments
Pat Brisbin commented
The reason for LOG_CONCURRENCY
is to support opting out of fast-logger's concurrent buffers, which result in out-of-order messages. On production, with json
format, you want the speed of concurrency knowing the messages will get re-ordered on the other side. Locally, with tty
format, expected order is more important than performance.
So, why not just automatically use LOG_CONCURRENCY=1
or not based on LOG_FORMAT
?