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)
5
  • What kind of logs are you referring to? By default, Flutter doesn't print out anything while the app is running. Commented Feb 23, 2020 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... Commented Feb 23, 2020 at 15:53
  • any new news? it is annoying Commented Apr 12, 2020 at 19:55
  • @AminJoharinia Yes, check my answer on this page: stackoverflow.com/questions/60467374/… Commented Apr 14, 2020 at 17:26
  • please see This answer it is not permenant but it is a good workaround Commented May 13, 2020 at 23:22

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

3 Comments

It's spammy for me too (years later). Where is that dropdown?
@PaulSumpner under the logcat tab (android)
thanks, but i think the logcat tab may have gone? stackoverflow.com/a/32929448/1429282

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.