Add customised log filtering for Android #822
Labels
android
The issue relates to Android mobile support.
enhancement
New features, or improvements to existing features.
When an app runs on Android, we currently expose all log messages generated by the app. In some circumstances, this can result in excessive logs being displayed.
adb logcat
provides the ability to filter the log stream by log level and by component; a user should be able to configure this log level.Describe the solution you'd like
It should be possible to pass one or more options to
briefcase run android
to:Describe alternatives you've considered
This could be achieved in multiple ways:
logcat
command (e.g.,--logcat "-s *:I Python:E
). This is the most flexible option, as it exposes any capability ofadb logcat
.logcat
(e.g.,--logcat "-s" --logcat "*:I" --logcat Python:E
) This has the flexibility of option (1), but removes the need to parse the filter into individual arguments; however, it is more verbose.--debuglog
option that enables/disables a filter to include DEBUG level output. This option requires less expertise on the part of the end-user, but removes considerable flexibility. However, from the perspective of the end user, it's more likely to be aligned with their needs - display "just the important logs" by default, but provide an easy option to get everything else.Additional context
This is an extension of #821, introduced to address #814.
#821 deliberately adds a filter for
EGL_emulation
messages because they are excessively verbose; this indicates that there is a some need to filter logs.The text was updated successfully, but these errors were encountered: