Feature/1376/logging and reporting#6373
Conversation
|
APK file: https://github.com/nextcloud/talk-android/actions/runs/27824399768/artifacts/7749295330 |
|
APK file: https://github.com/nextcloud/talk-android/actions/runs/27842498569/artifacts/7756417285 |
2bff679 to
141de3f
Compare
f9fa3b0 to
bef07f0
Compare
Introduces a structured local file logger with configurable log levels
(INFO/DEBUG), advanced HTTP request logging, and tagged loggers that
auto-capture the calling class name.
Adds crash reporting via a custom UncaughtExceptionHandler that captures
a diagnosis snapshot and log files when the app crashes, and a
ShowErrorActivity to surface the crash report.
Adds a "Diagnosis & Logs" section to Settings with:
- A log viewer screen (LogsActivity) with an inline advanced logging toggle
and privacy notice when advanced logging is enabled
- A "Share diagnosis report" action that bundles logs and diagnosis data
for email, ZIP download, or GitHub issue creation
- A red warning subline under "Logs" when advanced logging is active
- The report email extracted to setup.xml as `nc_report_email` for branding
Extracts diagnosis data to DiagnosisReport, removes sharing actions from
individual screen menus (DiagnosisActivity, LogsActivity), and consolidates
all export flows through SettingsActivity.
AI-assistant: 2.1.183 (Claude Code) (Claude Sonnet 4.6)
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
bef07f0 to
32d6b30
Compare
|
APK file: https://github.com/nextcloud/talk-android/actions/runs/28047427695/artifacts/7829811461 |
This PR will add:
This PR does not yet replace all Log command with the new logger. This should be done in separate PRs while also cleaning up unnecessary Log commands.
🖼️ Screenshots
Settings screen
Logs screen
Crash reporting screen
Testing
To test the crash screen, just add
throw RuntimeException("Test crash")somewhere in the code and trigger it.
🚧 TODO
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)