Fork me on GitHub
#pedestal
<
2020-09-28
>
emccue14:09:27

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

emccue14:09:37

does it matter which one I use?

ddeaguiar14:09:18

@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

emccue14:09:17

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?

ddeaguiar14:09:34

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

👍 3
emccue14:09:04

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

👍 3