sprint 3.0.0 copy "sprint: ^3.0.0" to clipboard
sprint: ^3.0.0 copied to clipboard

A tiny, simple-to-use and fully documented library for printing messages to the web console or to the terminal in a variety of modes.

example/example.dart

import 'package:sprint/sprint.dart';

class Server {
  final Sprint log = Sprint('Server');

  Future init() async {
    doWork();

    try {
      doCrucialButErrorProneWork();
    } on Exception catch (exception) {
      return log.fatal('Failed to initialise server: $exception');
    }

    log.info('Initialised server');
  }

  void doWork() {}
  void doCrucialButErrorProneWork() {}
}
3
likes
140
pub points
55%
popularity

Publisher

verified publishervxern.dev

A tiny, simple-to-use and fully documented library for printing messages to the web console or to the terminal in a variety of modes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

tint

More

Packages that depend on sprint