WordPress-iOS icon indicating copy to clipboard operation
WordPress-iOS copied to clipboard

Add Extensive Logging

Open kean opened this issue 1 month ago • 7 comments

Description

  • Integrate Pulse and set it up using SwiftLog Logging System
  • Add a "bolt" button to "Experimental Features". Tap it five times, and it'll show a new "Super Experimental Features" section.
  • Show "Extensive Logging" flag in the new section. When you enable it, it'll show a warning alert.
  • Add "Logger" section in "App Settings" (if enabled)

Screenshot 2025-11-21 at 4 05 01 PM Screenshot 2025-11-21 at 4 04 05 PM Screenshot 2025-11-21 at 4 05 13 PM Screenshot 2025-11-21 at 4 07 36 PM

kean avatar Nov 21 '25 21:11 kean

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number30061
VersionPR #25005
Bundle IDorg.wordpress.alpha
Commite164a07306a6475639f7c8d0324e9b75da6d19d4
Installation URL6soibd37sjcbg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

wpmobilebot avatar Nov 21 '25 21:11 wpmobilebot

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number30061
VersionPR #25005
Bundle IDcom.jetpack.alpha
Commite164a07306a6475639f7c8d0324e9b75da6d19d4
Installation URL0f72lfs8bc7f0
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

wpmobilebot avatar Nov 21 '25 21:11 wpmobilebot

Version 26.5 has now entered code-freeze, so the milestone of this PR has been updated to 26.6.

wpmobilebot avatar Nov 23 '25 22:11 wpmobilebot

Renamed it to "Developer Tools"

kean avatar Nov 24 '25 13:11 kean

If I understand correctly, with the changes in this PR, the app now always uses Pulse to log HTTP requests and responses, and the feature toggle controls whether the user can see those logs. Considering 99% of the users won't turn on the feature toggle and view the logs, to avoid running code and taking up the app's memory for nothing, should we change the model to only log HTTP requests when the feature toggle is on?

crazytonyli avatar Nov 25 '25 09:11 crazytonyli

should we change the model to only log HTTP requests when the feature toggle is on?

There is a significant impact on performance and app on-disk see. If has to be a debug-only feature.

kean avatar Nov 25 '25 12:11 kean