Just released Onelog, a very efficient simple to use JSON logger. It uses GoJay’s encoder internally, wrapping it to make it easier to use.
API is different than most common go loggers but it is very efficient, please let me know what you think of it and if you feel it make sense to addd an API such as:
You should link to the benchmark code somewhere. I just glanced at the readme, and passing a closure for extra fields does not feel like it ought to be zero allocations to me. (Perhaps it is in the benchmark because the passed function only uses constants so doesn’t close over anything?)