Skip to content

Conversation

@jguz-pubnub
Copy link
Contributor

@jguz-pubnub jguz-pubnub commented Sep 18, 2025

feat(logger): update how PubNubLogger is configured (now via PubNub constructor)

BREAKING CHANGES: The static log and logLog properties have been removed from the PubNub instance. You can now attach a logger instance via the PubNub initializer instead.

feat(logger): encapsulate logging behavior

BREAKING CHANGES: Logging methods such as debug, warning, etc, are no longer public. They are now internal as part of the logging encapsulation improvements.

feat(logger): change LogWriter protocol method signature

BREAKING CHANGES: The LogWriter protocol method signature has been refined to accept a LogMessage object representing the logged content. It now also takes a LogMetadata parameter, allowing logging decisions to be made without evaluating the message itself.

feat(presence): add limit and offset parameters to the hereNow method

BREAKING CHANGES: The HereNow method now returns a maximum of 1,000 occupants per channel. Previously, it would return all occupants regardless of count. If you have channels with more than 1,000 occupants, you must use pagination to retrieve the complete list.

@jguz-pubnub jguz-pubnub force-pushed the fix/logger branch 4 times, most recently from ae8830f to 699363e Compare October 15, 2025 10:40
@jguz-pubnub jguz-pubnub changed the title Add logger improvements Structured logging system and HereNow pagination limits Oct 21, 2025
@jguz-pubnub
Copy link
Contributor Author

@pubnub-release-bot release as 10.0.0

@jguz-pubnub jguz-pubnub force-pushed the fix/logger branch 6 times, most recently from d3bef59 to 2839d37 Compare October 21, 2025 16:07
@jguz-pubnub jguz-pubnub merged commit 6cc02ba into master Oct 21, 2025
17 of 24 checks passed
@jguz-pubnub jguz-pubnub deleted the fix/logger branch October 21, 2025 21:12
@pubnub-release-bot
Copy link

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants