Skip to content
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

chore: logging feature in android native module #319

Merged

Conversation

ami-aman
Copy link
Collaborator

Linear ticket: https://linear.app/customerio/issue/MBL-478/add-logging-support-in-package-android-native-module

Problem

As a developer, I want to have logging support integrated into the package so that I can easily access logs without needing to open Android Studio as we do today.

Solution

Added logger support in React Native using event emitters from the Android native module, enabling all native logs to be output to the React Native console. This eliminates the need for customers to open Xcode to retrieve logs, as they currently do.

This is the screenshot from VS Code when loglevel is debug.
Screenshot 2024-09-10 at 6 29 50 PM

@ami-aman ami-aman requested a review from a team September 10, 2024 13:00
Copy link

github-actions bot commented Sep 10, 2024

Sample app builds 📱

Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.


  • APN: Build failed. See CI job logs to determine the issue and try re-building.
  • FCM: Build failed. See CI job logs to determine the issue and try re-building.

Copy link
Contributor

@Shahroz16 Shahroz16 left a comment

Choose a reason for hiding this comment

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

looks good, some general suggestions for idiomatic Kotlin syntax usage

@ami-aman ami-aman merged commit 1b29f29 into feature/cdp-milestone-track-identify Sep 10, 2024
2 of 8 checks passed
@ami-aman ami-aman deleted the feature/cdp/logging-android branch September 10, 2024 13:49
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.

2 participants