tinylog-org / tinylog

tinylog is a lightweight logging framework for Java, Kotlin, Scala, and Android
https://tinylog.org
Apache License 2.0
699 stars 82 forks source link

How to skip the log output of third-party packages? #665

Closed lizhongyue248 closed 9 months ago

lizhongyue248 commented 9 months ago

Tinylog has been integrated into the application, and some third-party packages can also be used, but I hope to skip the log output of the specified third-party package. Can the output be ignored through package name matching?

pmwmedia commented 9 months ago

This is just a one liner in your tinylog.properties:

level@com.third.party.package = off

Also see https://tinylog.org/v2/configuration/#severity-level

lizhongyue248 commented 9 months ago

Great, I didn't expect to be able to do it this way! Tinylog really very useful!