This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-15
Channels
- # architecture (5)
- # babashka (34)
- # beginners (72)
- # calva (42)
- # cherry (31)
- # cider (14)
- # clojure (27)
- # clojure-europe (11)
- # clojure-norway (17)
- # clojure-uk (1)
- # clojurescript (25)
- # community-development (13)
- # conjure (1)
- # core-async (11)
- # datascript (18)
- # datomic (11)
- # emacs (12)
- # fulcro (10)
- # integrant (5)
- # introduce-yourself (3)
- # jobs (8)
- # juxt (2)
- # malli (22)
- # off-topic (11)
- # pathom (18)
- # polylith (62)
- # rdf (18)
- # reagent (8)
- # releases (1)
- # shadow-cljs (35)
- # sql (3)
- # squint (141)
- # tools-deps (12)
- # vim (4)
- # xtdb (4)
I feel like I'm missing a key detail somewhere in the docs and I hope someone can point me in the right direction. Is there a way to specify order in configuration of nodes at the same (top) level of the dependency tree? More detail: I'd like to configure my logger (timbre) first, so all logs of all subsequent configuration steps are routed to the correct appender, etc. Thus, when my DB connection pool is configured, the messages from said configuration show up correctly. Short of declaring the logger to be the top level dependency (even though it doesn't need to be injected), is there an idiomatic way I should do this?
If they have an order, make them reference each other
Sorry, hit enter too soon. Added more detail.
I would have to reread the docs but i believe the answer is no. Just make each of the “top level” nodes reference the logger, and it'll happen automatically. Even if you don't need configuration or to inject anything for the logger. You have dependencies, they should be explicit in the dependency map.