freckle / blammo

Batteries-included structured logging library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default LOG_CONCURRENCY=1 if LOG_FORMAT=tty

pbrisbin opened this issue · comments

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?