stump 1.0.1 copy "stump: ^1.0.1" to clipboard
stump: ^1.0.1 copied to clipboard

Stump is a Flutter logger inspired by Timber. It provides a set of static methods to easily log messages and the support to multiple and custom printers.

example/main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:stump/stump.dart';

void main() {
  if (kDebugMode) {
    Stump.addPrinter(DebugPrinter());
  }

  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    Stump.d('App build started');

    return MaterialApp(
      home: Scaffold(
        body: Column(children: [
          ElevatedButton(
            child: Text('Warning'),
            onPressed: () => Stump.w('This is a warning'),
          ),
          ElevatedButton(
            child: Text('Error'),
            onPressed: () => Stump.e('This is an error'),
          ),
        ]),
      ),
    );
  }
}
0
likes
135
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

Stump is a Flutter logger inspired by Timber. It provides a set of static methods to easily log messages and the support to multiple and custom printers.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, intl, stack_trace

More

Packages that depend on stump