ably / ably-asset-tracking-swift

iOS client SDKs for the Ably Asset Tracking service.
Apache License 2.0
9 stars 6 forks source link

Add info to log messages about which subsystem emitted message #508

Closed lawrence-forooghian closed 1 year ago

lawrence-forooghian commented 1 year ago

This adds a tag like [assetTracking.subsystem1.subsystem2] to each log message, identifying which subsystem (which might be a type, or might be the ably-cocoa SDK) emitted the message.

For example, a log from ably-cocoa inside the Publisher SDK would be tagged [assetTracking.publisher.DefaultAbly.ablySDK]. (This might turn out to be a little too verbose, but we can tweak that later.)

This allows us to always identify the output of the ably-cocoa SDK, and also allows us to remove all of the ad-hoc logging of Self.self.

Relates to #494.