You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`.networkRequest(NetworkRequest)` - HTTP request details with ID, URL, headers, body, and status
36
40
-`.networkResponse(NetworkResponse)` - HTTP response details with status code, headers, and body
37
41
-`.customObject(CustomObject)` - Method calls/events with operation name and arguments
38
-
3.**Efficient Filtering** - `LogMetadata`(containing level and category) lets log writers check whether to log before evaluating the `@autoclosure` message parameter, avoiding expensive message construction for filtered logs
42
+
3.**New `metadata` parameter** - The `LogMetadata`type contains the `level` and `category` of the message being logged. This allows your log writer to inspect these properties for filtering specific log messages without evaluating the potentially expensive `LogMessage`:
39
43
40
44
#### 1.2 Logger Configuration
41
45
42
-
The way to attach a logger to PubNub has changed. The static `log` and `logLog` properties have been removed. **Logging is now disabled by default**, so you must explicitly enable it:
46
+
The way to attach a logger to PubNub has changed. The static `log` and `logLog` properties have been removed. **Logging is now disabled by default** and must be configured through the PubNub initializer:
The logging methods (`debug`, `info`, `event`, `warn`, `error`, `custom`) on `PubNubLogger` are no longer public. The SDK's logging system is designed exclusively for internal SDK operations. If you were using these methods for custom application logging, use your own logging solution instead.
65
+
The logging methods (`debug`, `info`, `event`, `warn`, `error`) on `PubNubLogger` are no longer public API. You can no longer use `PubNubLogger` to log your own application messages. The SDK's logging system is designed exclusively for internal SDK operations.
62
66
63
67
```swift
64
68
// Before (9.0):
65
69
PubNub.log.debug("Custom debug message") // ✅ This worked
66
70
67
71
// Now (10.0):
68
-
pubNub.logger.debug("Custom debug message") // ❌ No longer available
72
+
pubnub.logger.debug("Custom debug message") // ❌ No longer available
69
73
```
74
+
___
70
75
71
76
### 2. Presence API Changes
72
77
73
-
#### 2.1 HereNow Method Pagination
78
+
#### 2.1 HereNow Changes
74
79
75
80
**Key Changes:**
76
81
77
82
1.**New Parameters** - Two pagination parameters added:
78
-
-`limit: Int` (default: 1000) - Maximum occupants per request
83
+
-`limit: Int` (default: 1000) - Maximum occupants per channel
79
84
-`offset: Int?` (default: 0) - Starting position for pagination
0 commit comments