This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-01
Channels
- # announcements (20)
- # babashka (3)
- # beginners (30)
- # calva (28)
- # cider (3)
- # circleci (4)
- # clerk (27)
- # clj-kondo (72)
- # cljdoc (15)
- # cljs-dev (1)
- # clojure (85)
- # clojure-europe (37)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-spec (7)
- # clojurescript (19)
- # clr (1)
- # conjure (11)
- # datahike (2)
- # datomic (11)
- # emacs (26)
- # events (4)
- # hoplon (35)
- # hyperfiddle (41)
- # jobs (7)
- # lsp (10)
- # nrepl (3)
- # off-topic (57)
- # portal (47)
- # practicalli (1)
- # rdf (3)
- # reitit (21)
- # releases (1)
- # testing (6)
- # tools-build (16)
- # wasm (1)
- # xtdb (16)
hi everybody, I see that tools.build has org.slf4j/slf4j-nop
as a dependency, which silence all logging on applications that use tools.build as a transitive dependency. What is the reason for it?
I imagine most people only use tools.build from build scripts where that is not a problem, but is kind of inconvenient when using it as a dependency for other libs
You can easily add it back
yeah, I ended up excluding it from my lib, since a user was complaining "when using your lib I suddenly don't have logs"
but is it a good default?
For most people, yes
Can you explain how it was affecting someone else? I don’t get it
so, FlowStorm debugger uses tools.build as a dep, it uses it for generating jars. A user was asking why when adding FlowStorm to the classpath their app stopped logging
That still doesn’t make sense
Oh wait, I’m sorry, it does
I was thinking it was an exclusion not an added dep
yeah, so now I have an exclusion, so my lib jar doesn't drag slf4j-nop and don't surprise its users
Most users of tools.build are end users, not libs
yeah that I was imaging
but I think tools.build has a nice set of tools to be used from other libs, not only from build scripts
I'm surprised more people are not using https://github.com/BrunoBonacci/mulog for logging. I've used it on the last few commercial projects and its so much simpler and more effective to work with logs as data and integration with logging services is straight-forward. I even have mulog event logs pushed to Portal data inspector, as the logs are maps 🙂
well, even if you are using mulog it can silence your java logging