log4cats icon indicating copy to clipboard operation
log4cats copied to clipboard

Helpers for creating simple/stub versions of `SelfAwareStructuredLogger` and `LoggerFactory`

Open bplommer opened this issue 2 years ago • 2 comments

This came up in discussion on https://github.com/http4s/http4s/pull/6629 about whether the http4s logging middleware should continue to allow the user to provide String => F[Unit] instead of LoggerFactory - allowing it adds implementation complexity, but currently it takes a tremendous amount of boilerplate to lift a String => F[Unit] into a LoggerFactory. cc @armanbilge

Names and access modifiers subject to bikeshedding of course.

bplommer avatar Aug 23 '22 17:08 bplommer

Did a courtesy merge because we let this rot when it was already close. I didn't follow all the spidering conversations, but I think this was ready if we made the helper traits private to reduce the bincompat surface?

rossabaker avatar Feb 20 '23 02:02 rossabaker

currently it takes a tremendous amount of boilerplate to lift a String => F[Unit] into a LoggerFactory

If this is still a pain point, #854 may help and would benefit from your input

morgen-peschke avatar Jun 24 '24 18:06 morgen-peschke