Fork me on GitHub
#duct
<
2019-02-12
>
jco08:02:59

Is the idea in duct to explicitly mention :duct/logger as a dependency (in config.edn) for all components that need to log?

jahson13:02:19

I think it is because dependencies of component should be explicit IMO. Still, you can directly use e.g. (clojure.tools.logging/info) and ignore :duct/logger. In some cases you may have many different loggers, and use them in different components.

👍 5
weavejester23:02:23

@jco Yes, though you can automate it with inheritance and prep-key if you want.

👍 5