xchange-stream icon indicating copy to clipboard operation
xchange-stream copied to clipboard

how to silence any logging from the library?

Open ghost opened this issue 6 years ago • 3 comments

as in title...

ghost avatar Apr 12 '18 01:04 ghost

Use the nop slf4j implementation which sends all the logs to nowhere. For gradle:

implementation "org.slf4j:slf4j-nop:1.7.5"

in your build.gradle.

See if that works

caleb-allen avatar Apr 13 '18 00:04 caleb-allen

i see logs like this, with no package prefix nothing to filter them out. is it something i'm missing or this is how you log things?

Creating default exchange from class name
Creating default exchange from class name
Configuration from rescu.properties:
httpConnTimeout = 30000
httpReadTimeout = 30000
proxyHost = null

i definitely don't want to use any nop loggers, i want to filter out what i don't need.

ghost avatar Apr 13 '18 04:04 ghost

i have log4j-api:2.9.1, log4j-core:2.9.1, log4j-slf4j-impl:2.9.1 on my classpath, i was assuming that i might be missing something and there is classname prefix before these logs, but its still prints raw logs. Can you confirm there is no other way to silence these? they are logging on every single event...

ghost avatar Apr 15 '18 10:04 ghost