Member-only story
Flutter Logging 15 Minutes
Want to be able to do app logging instead of just logging during development of the app? Well, then you need to use the underlying Reactive infrastructure of the Flutter framework as none of the 3rd-party logging plugins in fact use if you want a speedy performant app that does app logging.
Let me show you the easy way to implement that.
The Developer Log Function
The Dart Developer package has a log function:
It emits one log even at a time. But where does the log event message go to?
Nowhere unless we somehow tell it somewhere to go to. All the 3rd-party Logging plugins invented their own definition of where the events should be emitted to, as they were created before the logging package was implemented. When the Logging Package was implemented, we then had a place that the event logs were going to if we configured the Logging package: