PubNub LogoDocs
SupportContact SalesLoginTry Our APIs

›android

android

  • Getting Started
  • API Reference

    • Configuration
    • Publish & Subscribe
    • Presence
    • Access Manager
    • Channel Groups
    • Message Persistence
    • Mobile Push
    • Objects
    • Files
    • Message Actions
    • Miscellaneous
  • Status Events
  • Troubleshooting
  • Change Log
  • Feature Support
  • Platform Support

Troubleshooting PubNub Android SDK

How to enable logging

Pubnub implements swappable logging using SLF4J, which allows you to switch different logging frameworks easily. All the logging calls using SLF4J API will be delegated to the underlying logging framework.

setLogVerbosity to PNLogVerbosity.BODY. For more info on configuration please check the API reference page.

PNConfiguration pnConfiguration = new PNConfiguration();

pnConfiguration.setLogVerbosity(PNLogVerbosity.BODY);
← Status EventsChange Log →
  • How to enable logging
© PubNub Inc. - Privacy Policy