https://github.com/lukaszkorecki/mokujin -- looks like it's wired to slf4j (but I guess you can bridge other logging libraries to it?)
Ah, https://github.com/lukaszkorecki/mokujin/blob/main/examples/log4j2/deps.edn shows how you can use log4j2 (and wire it into slf4j).
This is my log4j2-specific lib https://github.com/seancorfield/logging4j2 that was mentioned, with both MDC and NDC support, and markers and so on...
hi, yes - Mokujin was extracted from a project which originally used clojure.tools.logging & log4j and we needed MDC support - I was considering going all logback but then again, you can't avoid pulling in slf4j at some point to bridge logs from other libraries
Yeah, at work we are primarily log4j2 but we have a slew of bridging libraries in our deps as well in order to wrangle everything through log4j2... sometimes I wonder whether it was worth that much effort (esp. given c.t.l defaults to slf4j and you have to run all your apps with a JVM property to override that behavior... which is kinda what started me down the logging4j2 library, which I still haven't adopted at work yet!)
I guess I was lucky until now because I avoided using c.t.l's flag to force it to use a specific logger implementation... for the most part things with funneled through slf4j just worked. I just remembered one more reason for using MDC - Sentry's logback appender uses MDC fields to enrich reported errors, I believe log4j2 reporter does the same thing
Yeah, we rely on MDC a lot at work for adding context dynamically, and it is all forwarded to New Relic, so we can query the logs based on all sorts of context from our domain.
ah that's useful to know - we're actually looking into adopting an APM, I think NewRelic is on the shortlist
If you go with New Relic, we found this library very useful https://github.com/RutledgePaulV/newrelic-clj -- and I'm happy to answer any Qs about NR you may have... we've been using it for years.
that's great, thank you!
ReplicantTV: https://www.youtube.com/@replicant-clj
What was the AI tool that generated podcasts?
I tried it out with one of my own blog posts. It was certainly interesting. A bit of weird phrasing in places, a few side comments that it picked up on and gave more attention to than warranted. Definitely cool. It has the right "vibe" and mostly the right content.
So, Parens of the Dead, has two seasons! https://www.parens-of-the-dead.com/s1/ https://www.parens-of-the-dead.com/ So many episodes :)