Say orvibo binding, which use s20-sdk-0.0.6-SNAPSHOT.jar as library.
in karaf,
$log:set DEBUG org.openhab.binding.orvibo
I notice I can see log from orvibo binding, but can NOT see log from s20-sdk-0.0.6-SNAPSHOT.jar library.
I also notice orvibo binding is karaf bundle while the library is NOT.
Is it possible to see log from s20-sdk-0.0.6-SNAPSHOT.jar library which the binding use?
Do you have some idea whether slf4j is supported by karaf as well?
Thank you.
However,
1 in orvibo binding, import org.slf4j.Logger;
2 in config, log4j.logger.org.openhab.binding.orvibo = DEBUG
3 I do see orvibo binding debug log on karaf console.
I don’t understand what is happening here.
Does that mean slf4j & log4j actually one thing? Thank you.
I seriously doubt it. You might be able to create a .properties file or .xml file and put it somewhere that slf4j will know to look to configure it. If not I’m afraid you are likely out of luck.
Thus, if you have bundles that import any of the the usual logging API packages (SLF4J, LOG4J, java.util.logging), you can use pax-logging to collect all the messages from all of them and manage them together.