clojure-losangeles

seancorfield 2025-05-15T01:16:44.386109Z

https://github.com/lukaszkorecki/mokujin -- looks like it's wired to slf4j (but I guess you can bridge other logging libraries to it?)

seancorfield 2025-05-15T01:17:56.397979Z

Ah, https://github.com/lukaszkorecki/mokujin/blob/main/examples/log4j2/deps.edn shows how you can use log4j2 (and wire it into slf4j).

seancorfield 2025-05-15T01:20:12.686929Z

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...

lukasz 2025-05-15T13:16:53.571759Z

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

seancorfield 2025-05-15T13:22:26.162549Z

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!)

lukasz 2025-05-15T13:25:56.335649Z

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

seancorfield 2025-05-15T13:55:06.299579Z

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.

lukasz 2025-05-15T14:25:47.677349Z

ah that's useful to know - we're actually looking into adopting an APM, I think NewRelic is on the shortlist

seancorfield 2025-05-15T14:52:02.132129Z

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.

lukasz 2025-05-16T14:33:55.076369Z

that's great, thank you!

nate 2025-05-15T03:17:39.750389Z

ReplicantTV: https://www.youtube.com/@replicant-clj

2025-05-15T14:05:24.653579Z

What was the AI tool that generated podcasts?

seancorfield 2025-05-15T14:17:24.729019Z

https://notebooklm.google/

👍🏻 1
2025-05-15T17:59:58.372089Z

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.

srcerer 2025-05-15T17:16:43.404339Z

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 :)