The Right Way to Print Logs in Flutter Dart

Published: 05 August 2022
on channel: Proto Coders Point
4,201
21

#flutter #dart #logs

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-...



Support Proto Coders Point: https://www.buymeacoffee.com/rajatpal...
_______________________________________________
Comment below for any queries 😀
Follow and support me:
🐦 Twitter:   / rajatpalankar  
💬 Facebook:   / protocoderspoint  
💸 Instagram:   / 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/


Watch video The Right Way to Print Logs in Flutter Dart online, duration hours minute second in high quality that is uploaded to the channel Proto Coders Point 05 August 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 4,201 times and liked it 21 visitors.