sprint 1.0.2+4 copy "sprint: ^1.0.2+4" to clipboard
sprint: ^1.0.2+4 copied to clipboard

outdated

An extremely tiny, simple-to-use and fully documented library for printing messages in a variety of modes, ranging from 'debug' to 'severe'. – Includes optional 'quiet' mode to prevent all messages fr [...]

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
0
pub points
53%
popularity

Publisher

verified publishervxern.dev

An extremely tiny, simple-to-use and fully documented library for printing messages in a variety of modes, ranging from 'debug' to 'severe'. – Includes optional 'quiet' mode to prevent all messages from being printed.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor

More

Packages that depend on sprint