Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I/flutter logs are showing from previous app

Tags:

flutter

I/flutter logs are showing even i commented print statements. If i run run new app also, old app logs are showing in console. No luck with flutter clean command.

Can any one suggest to solve this issue ?

like image 869
Mahesh Peri Avatar asked Nov 24 '19 01:11

Mahesh Peri


People also ask

Where do flutter logs go?

Logging options in Flutter Logs are saved in a database, which can then be exported as a zip file, which can then be uploaded to a server or to use locally to identify and debug issues. The logs can be filtered and sorted easily based on many useful filters available.

What can I use instead of print in flutter?

write() , stdout. writeln() , etc.


1 Answers

Took me (many) hours to figure this out.

% flutter help logs

Show log output for running Flutter apps.

Usage: flutter logs [arguments] -h, --help Print this usage information. -c, --clear Clear log history before reading from logs.

Run flutter help to see global options.

Try: flutter logs -c (to clear, run in the project directory)

like image 127
Casey Wong Avatar answered Nov 09 '22 20:11

Casey Wong