This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-09
Channels
- # babashka (22)
- # beginners (58)
- # calva (14)
- # clj-kondo (3)
- # cljs-dev (4)
- # clojure (17)
- # clojure-dev (4)
- # clojure-italy (6)
- # clojure-uk (2)
- # clojurescript (32)
- # conjure (9)
- # cursive (2)
- # figwheel-main (48)
- # fulcro (77)
- # helix (2)
- # jobs-discuss (3)
- # joker (2)
- # pathom (3)
- # quil (3)
- # re-frame (24)
- # reitit (6)
- # shadow-cljs (11)
- # tools-deps (8)
- # xtdb (29)
I have a question about logging with conjure - the log window does not seem to capture any of the clojure.tools.logging output. Instead it all goes to wherever the original "lein repl" has been launched. How can this be fixed? I generally like to have my code use (log/info "xyz") for ongoing diagnostics instead of (println "xyz")
Yeah, this is an nREPL / clojure.tools.logging thing more than Conjure, I'm not doing anything extra to capture stdout, it should be captured by default. I would imagine it isn't because the logging is going out under another thread where *out*
is bound to stdout, not nREPL's capture.
This may well be the answer you're looking for! https://stackoverflow.com/questions/34576109/configure-clojure-logging-to-output-to-nrepl
@U38J3881W cider does this with no configuration
Oh, I see! Is that something I should be executing all the time on connection or offering to users I wonder :thinking_face:
I've added :ConjureOutSubscribe
and :ConjureOutUnsubscribe
to the develop
branch. I'm sending the op but it doesn't seem to work at all, maybe it'll work for you! @U012XDRMY6T
Thanks @U38J3881W - I just checked with the latest version, and it works. I only had to fiddle with .lein/profile.clj - add cider/nrepl to :user/:profiles in addition to :repl/:profiles. One day I'll figure those out...