pedestal

emccue 2020-09-28T14:30:27.019500Z

what is the difference between io.pedestal.log and clojure.tools.logging?

emccue 2020-09-28T14:30:37.019800Z

does it matter which one I use?

2020-09-28T14:35:18.023Z

@emccue io.pedestal.log is the logging lib provided by Pedestal. When you create a new pedestal service, itโ€™s a dependency since Pedestal uses it internally. Pedestal.log defaults to sljf4j-based logging by default but takes a data-centric approach to logging. Itโ€™s api is different that clojure.tools.logging but they both provide similarly named log-level macros

emccue 2020-09-28T14:45:17.024400Z

So for my purposes I can just use either and both will go through logback right? I don't need to refactor all my logs?

2020-09-28T14:48:34.025300Z

If you already have clojure.tools.logging in place then you can continue to use that. The same logback config will be used

๐Ÿ‘ 1
emccue 2020-09-28T14:51:04.025800Z

(I probably will use the data driven api going forward)

๐Ÿ‘ 1