flutter_fluent_logger 0.0.5 copy "flutter_fluent_logger: ^0.0.5" to clipboard
flutter_fluent_logger: ^0.0.5 copied to clipboard

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

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 #

0
likes
160
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

fluent_logger_api, fluent_sdk, loggy

More

Packages that depend on flutter_fluent_logger