Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reduce console output for Flutter in android studio

In most of the tutorials on YouTube, the output shown in console is mostly the output made by user itself (by that I mean output created by calling print() - my console is a mess though)

enter image description here

Is there a way to reduce the output only to things I call print() on in Android studio?

like image 514
pb4now Avatar asked Oct 21 '25 16:10

pb4now


1 Answers

As of now, there is no way of showing logs which are only from print() statement. However there is a workaround.

Whenever you write something in print statement, you can add some prefix to it like instead of writing it as

print('This is my log message');  // earlier way

You can write it as

print('myTag: This is my log message');  // newer way

After that all you need to do is use the search box functionality

enter image description here


Note: You can also create live template for print so that myTag is automatically added to it.

like image 87
CopsOnRoad Avatar answered Oct 24 '25 09:10

CopsOnRoad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!