Flutter logger — The complete crash course

Tomic Riedel
4 min readAug 21, 2022

We all know the problem: We want to debug print our app, but the messages in the chat are just a mess. They are not formatted, it’s hard to get an overview…. it just isn’t fun. That’s why I will introduce you to the logger package, which solves exactly this problem. Let’s get started!

Happy reading!

Note: Logger could look like this:

Installation

The first thing we have to do after creating our app is to add logger. To do so, we will use the command dart pub add logger. You should be familiar with those commands, otherwise, I recommend you to look up the basics of Flutter again.

There is also a package called logger_flutter, which you can use if you use Flutter. If you install this, you can shake your phone and it will show you the console on the phone. You can install it with flutter pub add logger_flutter. The console on your phone could look like this:

Basics

--

--

Tomic Riedel

Sharing the process of building a portfolio of apps to make people more productive.