4

Flutter log prints thousands of verbose/spam logs.

I am trying to debug a complex app but flutter printing so much verbose that it is difficult for me to find things which i am printing myself.

Is there any way to disable Verbose?

Something like:

Logger.level.disable('verbose')

My platform:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18362.657], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] VS Code, 64-bit edition (version 1.42.1)
[√] Connected USB device (1 available)
Robert Williams
  • 1,370
  • 1
  • 17
  • 38
  • What kind of logs are you referring to? By default, Flutter doesn't print out anything while the app is running. – Ovidiu Feb 23 '20 at 15:08
  • @Ovidiu When I do `flutter run` or `Ctrl+F5 (Run without Debugging in VS Code)` it starts printing hundreds of line about device touch status and all kind of other stuff etc... – Robert Williams Feb 23 '20 at 15:53
  • any new news? it is annoying – Amin Joharinia Apr 12 '20 at 19:55
  • @AminJoharinia Yes, check my answer on this page: https://stackoverflow.com/questions/60467374/e-accessibilitybridge-virtualview-node-must-not-be-the-root-node-flutter/60562185#60562185 – Robert Williams Apr 14 '20 at 17:26
  • please see [This answer](https://stackoverflow.com/a/61786515/11374545) it is not permenant but it is a good workaround – Ahmed Osama May 13 '20 at 23:22

1 Answers1

1

This was a bug in flutter engine which is now fixed in beta channel and soon will be released in next stable release.

You should just ignore these errors if possible otherwise change your flutter channel by:

flutter channel beta

Edit:

If you are using Android Studio then you can filter log. Deselecting any other option other than "Info" will remove unwanted log.

enter image description here

Robert Williams
  • 1,370
  • 1
  • 17
  • 38