I am using a third-party library which has a log4j.xml configuration - what's the best way to turn off the logging?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Or directly from code:
I think all that is required is to set the threshold parameter to OFF
With log4j.xml the minimal solution looks like this:
Note that in
threshold="off"
, "off" must be in lower case.You could also try setting the logging level to "Severe" if you only want to log game-breaking events.
Depends on configuration. Try something like:
Check Log4jXmlFormat for more details.