Unity V4 SDK Troubleshooting Guide
How to enable logging
Set LogVerbosity
to PNLogVerbosity.BODY
when initializing PubNub.
define symbol
Adding a ENABLE_PUBNUB_LOGGING
for each of the platforms you want to enable logging.This setting is available in the Unity Editor:
File
>Build Settings
>Player Settings
>Other Settings
>Configuration
>Scripting define symbols
.After you type
ENABLE_PUBNUB_LOGGING
in it, remember to press Return with the focus still in the text box, or your setting will not be saved.In the
Build Settings
of UnityEditor checkDevelopment Build
, then build and run.
The location of the log files can be found at the following link: https://docs.unity3d.com/Manual/LogFiles.html.