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

Evolving idea - Storing logs in local cache for sending #74

Open
yashovardhan99 opened this issue May 18, 2022 · 2 comments
Open

Evolving idea - Storing logs in local cache for sending #74

yashovardhan99 opened this issue May 18, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request sticky This is an active sticky issue. Should not be closed

Comments

@yashovardhan99
Copy link
Owner

Is your feature request related to a problem? Please describe.
Currently, all logs are captured using Timber's DebugTree which only writes to the logcat. For production builds, a better solution will be writing the logs to a local file which can be shared for debugging.

Describe the solution you'd like
This can be easily implemented using a Timber tree for release builds. Every time an exception is to be logged, we append it to a log file. The file is cleared on app start.

Describe alternatives you've considered
Using crash handling libraries like Crashalytics can be expensive and requires internet; This solution works completely offline and the user can be presented with an option to send the logs via email.

Additional context
When an uncaught exception occurs, we can prompt the user to send the logs captured via email. UI for this should ideally reside in a new activity. New activity can be started from Application class using FLAG_ACTIVITY_NEW_TASK.

Related SO answer

This will be in relation to commit 3045d78

@yashovardhan99 yashovardhan99 added the enhancement New feature or request label May 18, 2022
@yashovardhan99 yashovardhan99 self-assigned this May 18, 2022
@yashovardhan99 yashovardhan99 moved this from Todo to In Progress in Healers Diary Project May 18, 2022
@stale
Copy link

stale bot commented Jul 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jul 10, 2022
@stale stale bot closed this as completed Jul 31, 2022
Repository owner moved this from In Progress to Done in Healers Diary Project Jul 31, 2022
@stale stale bot removed the wontfix This will not be worked on label Sep 10, 2022
Repository owner moved this from Done to Picked in Healers Diary Project Sep 10, 2022
@stale
Copy link

stale bot commented Oct 30, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 30, 2022
@yashovardhan99 yashovardhan99 added sticky This is an active sticky issue. Should not be closed and removed wontfix This will not be worked on labels Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sticky This is an active sticky issue. Should not be closed
Projects
Status: Picked
Development

No branches or pull requests

1 participant