I'm new to Flutter and it would be really nice to know when a line of trace was emitted.
A simple print statement in a Flutter class like this:
print("hello, console logging");
outputs this in the Console / "4. Run" bottom-tab:
I/flutter ( 6731): hello, console logging
Three questions:
I've researched this for about an hour and I can't find any answers.
I/flutter:
It means message logging of 'Information' kind. flutter
is the tag for the log. More info https://developer.android.com/reference/android/util/Log
In the android studio, you can find the method Log.i()
which accepts a TAG and a message to log. Example. Log.i("flutter", "Some message here..");
To print the time of the log you can append TimeOfDay.now().toString()
with your print message, as print("hello, console logging. Time: " + TimeOfDay.now().toString());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With