The Right Way to Print Logs in Flutter Dart

Опубликовано: 05 Август 2022
на канале: 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/


Смотрите видео The Right Way to Print Logs in Flutter Dart онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Proto Coders Point 05 Август 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 4,201 раз и оно понравилось 21 посетителям.