This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-28
Channels
- # aleph (7)
- # babashka (13)
- # beginners (10)
- # biff (4)
- # calva (75)
- # cljs-dev (22)
- # clojure (55)
- # clojure-berlin (1)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (35)
- # clojure-serbia (1)
- # clojure-uk (2)
- # clojurescript (46)
- # community-development (1)
- # core-async (23)
- # data-science (1)
- # datalevin (2)
- # datascript (10)
- # datomic (11)
- # fulcro (28)
- # helix (12)
- # hyperfiddle (26)
- # introduce-yourself (4)
- # malli (16)
- # off-topic (1)
- # pathom (4)
- # pedestal (1)
- # polylith (12)
- # quil (11)
- # releases (3)
- # scittle (24)
- # shadow-cljs (85)
- # specter (1)
- # sql (9)
- # xtdb (5)
Hi all, can I ask nbb questions in this channel or is there a separate channel for nbb?
Is there a quick way to disable all tools.logging output (at least all stdio output?) from a script? I tried https://stackoverflow.com/a/58854666:
(binding [clojure.tools.logging/*logger-factory*
clojure.tools.logging.impl/disabled-logger-factory]
(do-stuff-that-will-not-be-logged))
but clojure.tools.logging.impl/disabled-logger-factory apparently isn't available in babashka.
user=> (ns-publics 'clojure.tools.logging.impl)
{get-logger #'clojure.tools.logging.impl/get-logger, enabled? #'clojure.tools.logging.impl/enabled?}
edit: actually it's a private var so wouldn't show up in ns-publics, but the regular var derf trick of @@(requiring-resolve 'clojure.tools.logging.impl/disabled-logger-factory)
is giving an NPE as well
I had a little script that I used as a git credential fetcher and was expected to output a particular string, and it uses https://github.com/grzm/awyeah-api/blob/d98a9f6210c61d64f22e9b577d2254d6f6d2f35f/src/com/grzm/awyeah/credentials.cljc#L137-L141Yeah I'm wondering if there is a way to set the clojure.tools.logging level without having to deal with some external logging imeplemntation's factory config files, since it previously was just a small 10 line script. My understanding is that this could be done by extending one of https://github.com/clojure/tools.logging/blob/master/src/main/clojure/clojure/tools/logging/impl.clj but I don't think they're available from babashka. I dont have much experience with tools.logging though