This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-06
Channels
- # babashka (40)
- # beginners (14)
- # calva (3)
- # cider (7)
- # clerk (40)
- # clj-kondo (8)
- # cljfx (3)
- # clojure (79)
- # clojure-berlin (1)
- # clojure-denver (14)
- # clojure-europe (30)
- # clojure-nl (6)
- # clojure-norway (21)
- # clojure-uk (4)
- # clojurescript (10)
- # conjure (4)
- # data-science (13)
- # emacs (21)
- # events (8)
- # hoplon (7)
- # hyperfiddle (25)
- # lsp (11)
- # matrix (1)
- # off-topic (110)
- # pathom (11)
- # pedestal (7)
- # reagent (13)
- # reitit (16)
- # ring (10)
- # shadow-cljs (6)
- # timbre (3)
- # vim (8)
- # wasm (3)
I'm having trouble with Jetty logging using ring-jetty-adapter, I can't figure out how to change it.
My application uses timbre and slf4j, but configuring timbre doesn't affect jetty logging at all, despite jetty announcing that it's using slf4j on startup. I'd really like to change the colour so INFO
messages don't log in red, to change the format to match my other log messages, and possibly even raise the jetty log level to WARN
I've tried everything in the jetty docs including adding a jetty-logging.properties
to my classpath, but that also didn't do anything.
Anyone know how to configure jetty logging in a ring application? (I also have the same problem with migratus)
I think you should be aware about logging in Web apps. I think logging implememtation is loaded by servlet containers and Web apps should just use the API.
it should work if you use clojure tools logging . that should pick-up slf4j implementation from jetty and you cand then configure it via jetty properties
we stopped using timbre because of this issue. we use libraries with different implementations. timbre, to my knowledge is also an implementation qnd you can't quite mix and match. we tried https://github.com/fzakaria/slf4j-timbre but it has a bug or two and we decided to use tools logging facade with slf4j implementation (amperity/dialog)