-
Notifications
You must be signed in to change notification settings - Fork 99
Added Logger and SegmentLogger plugin. #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -122,7 +122,7 @@ extension UIViewController { | |||
guard let top = Self.seg__visibleViewController(activeController()) else { return } | |||
|
|||
var name = String(describing: top.self.classForCoder).replacingOccurrences(of: "ViewController", with: "") | |||
print(name) | |||
analytics?.log(message: name) |
There was a problem hiding this comment.
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)"
} | ||
return event | ||
} | ||
|
||
// we also want to know when settings are retrieved or changed. | ||
func update(settings: Settings) { | ||
let json = settings.prettyPrint() | ||
print("settings updated on instance: \(name)") | ||
print("\(json)\n") | ||
analytics?.log(message: "settings updated on instance: \(name)") |
There was a problem hiding this comment.
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.
@@ -250,7 +250,7 @@ extension AppsFlyerDestination: AppsFlyerLibDelegate { | |||
extension AppsFlyerDestination: DeepLinkDelegate, UIApplicationDelegate { | |||
|
|||
func didResolveDeepLink(_ result: DeepLinkResult) { | |||
print(result) | |||
analytics?.log(message: result) |
There was a problem hiding this comment.
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.
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.