Fork me on GitHub
Jakub Holý (HolyJak)19:07:22

Hello! I would appreciate an advice regarding configuring Timber. This config works for me:

:ns-filter {:allow #{"com.fulcrologic.*" "billing-app.*" "org.flywaydb.*"}
            :deny #{"com.zaxxer.hikari.pool.HikariPool" "com.zaxxer.*" #_and_more...}}
though I assume the :deny part is useless since none of the patterns there are allowed by :allow . However I would rather be able to say "allow everything except this list of exceptions" and I have tried that with
:ns-filter {#_#_:allow #{"com.fulcrologic.*" "billing-app.*" "org.flywaydb.*"}
            :deny #{"com.zaxxer.hikari.pool.HikariPool" "com.zaxxer.*" #_and_more...}}
but it does not work - I see debug logs from com.zaxxer.hikari.pool.HikariPool despite it being on the deny list, both literally and as a pattern. What am I doing wrong? 🙏 Timber v5.1.1


Hello! I realise this is an old question, but I'm experiencing the same problem. Hikari doesn't log through timbre, it probably ends up going through slf4j or similar, so timbre config won't affect its logs. I'm having trouble finding how it does log, and am wondering whether you figured it out and can remember? Ideally I'd like to route Hikari through timbre via slf4j, but I'd settle for any ability to control Hikari logging!