Skip to main content

iOS: Consider Logger subsystem to be RevenueCat instead of bundleIdentifier

  • March 9, 2024
  • 1 reply
  • 20 views

Forum|alt.badge.img+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

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 587 replies
  • March 16, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings