Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to filter logging of Flutter app in IntelliJ console?

When developing a Flutter app - I'm mostly interested in the logging messages I create with print() - in this case the logger is called I/flutter(4th row in picture).
But I'm getting spammed by many other loggers as you can see below.

Is there an easy way to turn all other loggers besides I/flutter off and on?

enter image description here

like image 389
Cold_Class Avatar asked Aug 18 '19 12:08

Cold_Class


People also ask

How do you filter Flutter logs?

we can use the plugin 'Grep Console' on Intellij IDEA to filter the console logs.

How do I filter logs in IntelliJ?

In the Run tool window, use the drop-down list of available message types to filter the log output and navigate through the messages.

How do I check the console log in Flutter?

How do I check the console log in Flutter? Note: You can view logs in DevTools' Logging view or in your system console. Note: You can set breakpoints in DevTools' Debugger, or in the built-in debugger of your IDE. Note: The easiest way to debug animations is to slow them down.


1 Answers

Update: Latest version of Android Studio doesn't carry this feature anymore.


Go to

Setting/Preferences -> Languages & Framework -> Flutter

Check

Replace the Run and Debug console output with a custom Flutter Logging view

enter image description here

After that you'll be able to see your logs easily by using search functionality.

like image 106
CopsOnRoad Avatar answered Nov 15 '22 05:11

CopsOnRoad