Is the idea in duct to explicitly mention :duct/logger
as a dependency (in config.edn
) for all components that need to log?
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.
@jco Yes, though you can automate it with inheritance and prep-key
if you want.