This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-30
Channels
- # announcements (1)
- # asami (60)
- # babashka (7)
- # beginners (19)
- # biff (5)
- # calva (12)
- # cherry (4)
- # cider (8)
- # clerk (3)
- # clojure-europe (3)
- # clojuredesign-podcast (2)
- # clojurescript (8)
- # data-science (48)
- # fulcro (8)
- # hyperfiddle (21)
- # leiningen (1)
- # malli (7)
- # music (3)
- # off-topic (7)
- # pedestal (15)
- # portal (8)
- # releases (2)
Is it possible to make clojure.tools.logging
log to stderr in babashka? As an experiment, I ran the container with podman run --rm -it babashka /bin/sh -c "/bin/bb 2>/dev/null"
and attempted to log, but I can see logs in my terminal, so I assume the logs are being sent to stdout
is it possible to change the default logger in clojure.tools.logging? this is how it should probably be done. the default logging code is here:
@U0479UCF48H you can change the default logger to log to std-err by tweaking the timbre logger:
(alter-var-root #'log/*config* assoc-in [:appenders :println] (log/println-appender {:stream :std-err}))
if i recall correctly, the logger factory is chosen based off a certain order: first tools.logging attempts reading SLF4J, then a bunch of other options, and ends at JUL