RubyRuby V4 SDK Troubleshooting Guide

 

These docs are for PubNub 4.0 for Ruby which is our latest and greatest! For the docs of the older versions of the SDK, please check PubNub 3.0 for Ruby.

If you have questions about the PubNub for Ruby SDK, please contact us at support@pubnub.com.

By default PubNub SDK keep logs in pubnub.log located in the script direcotry. You can pass custom logger as :logger parameter during initialization of the client.

logger = Logger.new(...)
logger.level = Logger::DEBUG

pubnub = Pubnub.new(
	subscribe_key: :demo,
	publish_key: :demo,
	logger: logger
)

The version is hold by VERSION constant in the Pubnub module.

Pubnub::VERSION