Skip to content

iota-for-flutter/logging_example_app

Repository files navigation

Logging Example App


Logging: Stream Rust log messages (trace, debug, warn, info, error) to Flutter.


What is the goal?

The aim is to use logger macros on the Rust side, such as trace!, debug!, warn!, info!, and error!, and integrate them into the Rust code in the application. Flutter is supposed to process the incoming log entries.

Here, in a slightly modified form, I present the logging example of the Flutter-Rust-Bridge:

👉   Flutter Rust Bridge - Logging

The app uses the Flutter Chat UI plugin, which displays a list of incoming messages and allows users to send their own messages. For demonstration purposes, this message is converted into multiple log messages on the Rust side. Flutter receives the entries and can decide using a switch whether the new entry should be streamed to the chat list or to the console.

Usage of the repository

I recommend setting up the project from scratch. I don't have experience in downloading the repository and magically getting it up and running with a single install command. That's why I refer you to the tutorial and the corresponding video:

👉   Logging Example App

About

IOTA for Flutter Tutorial - Building without IOTA - Logging Example App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published