fluent_logger

Package that allows you to print different types of messages in console

Getting Started

Add dependencies

flutter_fluent_logger: ^0.0.5

Build module

void main() async {
  await Fluent.build([
    LoggerModule(),
  ]);

  runApp(const MainApp());
}

Use it

class App extends StatelessWidget {
    const App({super.key});

    @override
    Widget build(BuildContext context) {
        // Print debug message in console
        Fluent.get<LoggerApi>().logDebug("Hello from Fluent Logger");
        
        return MaterialApp(
            title: 'Fluent Logger Demo',
            home: Scaffold(
                body: Center(
                    child: Text("Hello World!"),
                ),
            ),
        );
    }
}

Example