viesti / timbre-json-appender

JSON appender for Timbre
MIT License
44 stars 11 forks source link

How to combine with timbre's `with-context`? #8

Closed xlfe closed 3 years ago

xlfe commented 3 years ago

Firstly thank you for making this library available!

Just wondering if it is possible to use timbre's with-context to add args to the log context?

Appreciate your thoughts, or whether you'd like a PR to do that?

Cheers

viesti commented 3 years ago

Ah, that would be a nice idea! The :context key in the map that the appender receives could be merged into log-map.

I'd be happy to see a PR that makes this possible :)

xlfe commented 3 years ago

thanks @viesti !