CODEX

Expert Flutter Logging

an opinionated way to log in to flutter apps without exposing app-user treasures!

Fred Grott
CodeX
Published in
5 min readMar 8, 2021

--

Anybody can tell you how to cal a Logging API. Let’s do something a little different where I show you why you will call the logging API the way I say to as it pertains to keeping the app user secrets secret.

As always I am basing this on the beta flutter SDK channel and in this case using brand new Flutter 2.0. You can find the flutter project setup I use in the flutter-setup git repo at:

https://gitlab.com/fred.grott/flutter_setup

And you find the article about that setup at the end of the article.

Background

In the front-end world app security as far as keeping user details secret is somewhat uneven. Those of you from the native swift iOS world know that Apple has a very good security sandbox and keeps app logging out of the release mode of an app. But, in the Android world it’s a bit messed up in that it’s the logging library that has to through its design make sure that logs only show up in debug mode, usually by making the log call no-op in release mode.

Because Flutter Front-End Framework has to bridge this front end environment where security governing app logging might…

--

--