I'm using clojure.tools.logging, which is using the slf4j factory to instantiate a Logback logger.
What I'd like to do is be able to is have my DAO namespaces log normal messages to the application log, but log all SQL queries to a query log.
Looking at the clojure.tools.logging code, this doesn't really look possible, but I'm hoping that someone can prove me wrong. :)
If clojure.tools.logging can't do this, can anyone suggest another logging facility that can accomplish what I want? Or is it possible to do the routing in Logback's config files?
You should be able to specify this, using the last two forms of the log macro. I haven't tried this, only checked the code.
[EDIT]
Here is a sample from the test harness:
(log "other.ns" :debug e "foo")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With