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

outdated

An tiny, simple-to-use and fully documented library for printing messages to the web console or to the terminal in a variety of modes, ranging from 'debug' to 'severe'. – Includes optional 'quiet' mod [...]

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 tiny, simple-to-use and fully documented library for printing messages to the web console or to the terminal in a variety of modes, ranging from 'debug' to 'severe'. – Includes optional 'quiet' mode to prevent any message from being printed.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor

More

Packages that depend on sprint