Skip to content

Conversation

@migs647
Copy link
Contributor

@migs647 migs647 commented Aug 20, 2021

Added Logger and SegmentLogger plugin. Added print target and system target (osLog). Contains flag for sending based on if settings is updated to stop logging.

@bsneed bsneed changed the title Migs647/public logs Added Logger and SegmentLogger plugin. Sep 17, 2021

var name = String(describing: top.self.classForCoder).replacingOccurrences(of: "ViewController", with: "")
print(name)
analytics?.log(message: name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably be more descriptive than just the name of the view. ie: "Auto-tracking Screen: (name)"

let json = settings.prettyPrint()
print("settings updated on instance: \(name)")
print("\(json)\n")
analytics?.log(message: "settings updated on instance: \(name)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these can probably be combined into a single call.


func didResolveDeepLink(_ result: DeepLinkResult) {
print(result)
analytics?.log(message: result)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be more descriptive rather than just the deep link result.

@migs647 migs647 merged commit 4a103d0 into main Sep 21, 2021
@migs647 migs647 deleted the migs647/public-logs branch September 21, 2021 17:44
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