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

User-accessible logs #411

Open
di72nn opened this issue Jan 29, 2017 · 2 comments
Open

User-accessible logs #411

di72nn opened this issue Jan 29, 2017 · 2 comments

Comments

@di72nn
Copy link
Member

di72nn commented Jan 29, 2017

We often need to request logs from users. Sometimes it is a real PITA.

We need a way to easily gather and copy logs from within the app.

Standard android.util.Log doesn't provide any way to redirect or collect logs. It is possible to call logcat and gather the results, but it is ugly and has some limitations.

I was thinking about moving to SLF4J + logback-android. It should allow to log to various outputs (standard Android logcat, file, etc.). Also, SLF4J's API is better (no need for explicit String.format() in logging). Though, it would require to replace all the android.util.Log usages.
I don't see any downsides of it.

Any other ideas?

@tcitworld
Copy link
Member

I like this. You should be able to browse logs, copy them and also send them over email (cc @nicosomb if we could have an android@wallabag.org email).

@di72nn
Copy link
Member Author

di72nn commented May 29, 2020

About the downsides of using SLF4J on Android: there probably are libraries that log directly to logcat, so SLF4J wouldn't be able to gather that output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants