You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Add a flag to flutter run & flutter logs to filter output #50808
After #45743, we stopped filtering log output (by the string flutter both because it broke benchmark tasks and because it obscured when the app crashed. The downside is that the logs are much noisier. This should be configurable by a flag.
changed the title [-]Add a flag to `flutter run` & `flutter logs` to filter output[/-][+]Feature request: Add a flag to `flutter run` & `flutter logs` to filter output[/+]on Apr 6, 2020
): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
@madhavtripathi05 I didn't manage to add another filter using comma as a separator, maybe we can configure something here (see acreenshot)? But I don't understand how to do this, I need to filter multiple lines, please, help
For all those of you that don't use a editor with a build-in terminal that supports filtering, but rather depend on the commandline, here's a goodie for you: your flutter command here | sed '/^\(V\|I\|W\|E\)\/flutter/!d'
This sed command filters all that annoying stuff and is a pretty neat workaround until there's a proper flutter built-in solution :)
Reacted by Kyle Venn, Leó Takács, Nathan Anderson, mityax, Ian Selley, Mohamed and Jonas Badstübner
For all those of you that don't use a editor with a build-in terminal that supports filtering, but rather depend on the commandline, here's a goodie for you: your flutter command here | sed '/^\(V\|I\|W\|E\)\/flutter/!d'
This sed command filters all that annoying stuff and is a pretty neat workaround until there's a proper flutter built-in solution :)
Great approach!
While this works great, I like seeing the first logs while i'm waiting for my flutter app to run. For that I've tweaked your command to: flutter run | sed '/^.\// { /^\(V\|I\|W\|E\)\/flutter/!d }'
This also prints the lines that don't have a "/" in the second position
Reacted by Arne Christian Beer, Jonas Badstübner, Rafał Hirsch and Saatvik Sharma
Activity
FozanKh commentedon Apr 5, 2020
jmagman commentedon Apr 6, 2020
[-]Add a flag to `flutter run` & `flutter logs` to filter output[/-][+]Feature request: Add a flag to `flutter run` & `flutter logs` to filter output[/+]peterkapena commentedon Jun 25, 2020
): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 0 (0) 1 2
D/eglCodecCommon(19578): setVertexArrayObject: set vao to 1 (1) 1 6
Hot to remove these?
madhavtripathi05 commentedon Sep 29, 2020
Easy Fix (if you're using VSCode):
Inside Debug Console you can apply Filters
e.g. For excluding something you can type
!patternin your case
!D/egl..WebSheldon commentedon Sep 30, 2020
we can use the plugin 'Grep Console' on Intellij IDEA to filter the console logs.

GanongLS commentedon Feb 8, 2021
Hope this feature release soon, it's so annoying to watch my log so messy.
AdnanKazi commentedon Mar 22, 2021
@madhavtripathi05 Can I use multiple filters ?
madhavtripathi05 commentedon Mar 22, 2021
yes you can separated by commas
AdnanKazi commentedon Mar 22, 2021
Thanks man
Apollo108 commentedon Apr 13, 2021
@madhavtripathi05 I didn't manage to add another filter using comma as a separator, maybe we can configure something here (see acreenshot)? But I don't understand how to do this, I need to filter multiple lines, please, help
23 remaining items
Nukesor commentedon Aug 6, 2023
For all those of you that don't use a editor with a build-in terminal that supports filtering, but rather depend on the commandline, here's a goodie for you:
your flutter command here | sed '/^\(V\|I\|W\|E\)\/flutter/!d'This sed command filters all that annoying stuff and is a pretty neat workaround until there's a proper flutter built-in solution :)
ianselley commentedon Oct 4, 2023
Great approach!
While this works great, I like seeing the first logs while i'm waiting for my flutter app to run. For that I've tweaked your command to:
flutter run | sed '/^.\// { /^\(V\|I\|W\|E\)\/flutter/!d }'This also prints the lines that don't have a "/" in the second position
jordan-castro commentedon Jul 5, 2024
reidbaker commentedon Aug 14, 2024
@christopherfujino do you have a suggested flag name the android team has someone who is going to look at adding this functionality.
christopherfujino commentedon Aug 15, 2024
Naming things is hard, and I'm particularly bad at it. @jmagman do you have opinions?
jordan-castro commentedon Aug 15, 2024
@reidbaker why not name it "log-filter"
Resolve issue flutter#50808: Add --filter-logs flag to run and logs c…
feat: add --log-filter option to flutter run and logs commands