We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a37ec16 commit 723cd5bCopy full SHA for 723cd5b
1 file changed
PubNubUnity/Assets/Snippets/Logging/LoggingSample.cs
@@ -119,4 +119,18 @@ public static void SetMultipleLoggers() {
119
pubnub.RemoveLogger(fileLogger);
120
// snippet.end
121
}
122
+
123
+ public static void DisableLogging() {
124
125
+ // snippet.disable_logging
126
+ var pubnubConfiguration = new PNConfiguration(new UserId("uniqueUserId"))
127
+ {
128
+ SubscribeKey = "[yourSubscribeKey]",
129
+ PublishKey = "[yourPublishKey]",
130
+ // To explicitly disable logging
131
+ LogLevel = PubnubLogLevel.None,
132
+ };
133
+ var pubnub = new Pubnub(pubnubConfiguration);
134
+ // snippet.end
135
+ }
136
0 commit comments