apex / log

Structured logging package for Go.
MIT License
1.37k stars 112 forks source link

Add supplier pattern to avoid message creation overhead. #100

Closed thespags closed 1 year ago

thespags commented 2 years ago

The supplier will only be invoked if the log line's level is met. Otherwise we avoid string creation. This is to optimize applications that may want to minimize extra string creation overhead.

thespags commented 2 years ago

Hi @tj. I was wondering how often you get a chance to review PRs to this repo. I noticed there wasn't any updates in the last year. Thank you!