adding logging support to pubnub cn1 lib