iOS: Consider Logger subsystem to be RevenueCat instead of bundleIdentifier

  • 9 March 2024
  • 1 reply
  • 15 views

Badge +1

Hey everyone,

I’d like to propose the Logger use `com.revenuecat.Purchases` as the subsystem instead of `Bundle.main.bundleIdentifier`. This is determined in `LoggerType.swift:92`.

This would allow utilising the `Hide Similar Items` feature of Xcode 15 console to only hide RevenueCat logs (instead of launching RevenueCat again to change the log level).

The documentation of `Logger(subsystem:category:)` does contain:

The string that identifies the subsystem that emits signposts. Typically, you use the same value as your app’s bundle ID. For more information, see CFBundleIdentifier.

I believe this is advice for logs originating from the app, but when it comes to a dependency like RevenueCat, the app would be considered RevenueCat.

You might ask if this then means that if both app and RevenueCat logs wish to be hidden you would need to perform the `Hide Similar Items` twice. This isn’t necessary as you could hide all by hiding the logs of the process which includes your app and RevenueCat.


This post has been closed for comments

1 reply

Userlevel 4
Badge +8

Hi, thanks for the feedback, I have passed this along to the team.