Troubleshooting Android SDK

Enable logging

The PubNub Android SDK uses SLF4J to provide swappable logging, which allows you to switch between different logging frameworks. All logging calls from the SLF4J API are delegated to the underlying logging framework.

To see the body of requests, set the log verbosity to PNLogVerbosity.BODY. For more information, refer to the Configuration API reference page.

PNConfiguration pnConfiguration = new PNConfiguration();

pnConfiguration.logVerbosity(PNLogVerbosity.BODY);
Last updated on
On this page