sprint 1.0.4 copy "sprint: ^1.0.4" to clipboard
sprint: ^1.0.4 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() {}
}
4
likes
150
pub points
53%
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