Computer Education
Education
Training & Certification
The Right Way to Print Logs in Flutter Dart
4K views
·
Aug 16, 2022
Visit Channel:protocoderspoint.com
#flutter #fluttertutorial #dart #logs #print #appdevelopment #mobileapplicationdevelopment #flutterapp #flutterdeveloper
Hi Guys, Welcoem to Proto Coders Point In this Flutter Video Tutorial, let's learn the right way to print logs in flutter application development.
so Basically when we print long list of data by using print() statement in flutter, only the half string will get printed if the given string or data length is greater then 1020 character, and remaining string from string or list will get truncated.
That because the current latest version of dart language does not support printing long string data that are more then 1020 character, instead print() statement in flutter will only print 1020 character and trancate remaining.
Here is a solution
1. import 'dart:developer' as logDev;
2. using it:
logDev.log(" message ",name: "myLog");
https://protocoderspoint.com/flutter-print-full-log-dart/
Support Proto Coders Point: https://www.buymeacoffee.com/rajatpalankar
_______________________________________________
Comment below for any queries š
Follow and support me:
š¦ Twitter: https://twitter.com/rajatpalankar
š¬ Facebook: https://www.facebook.com/protocoderspoint/
šø Instagram: https://www.instagram.com/protocoderspoint/
Be sure to ask for help in the comments if you need any. Suggestions for future Flutter tutorials are also very welcome! :)
For mobile application development keep learning freely from proto coders point
Visit: https://protocoderspoint.com/
Show More
Show LessComments
loading text loading
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text