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

outdated

Extremely tiny, simple-to-use and fully documented library for printing messages.

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

Extremely tiny, simple-to-use and fully documented library for printing messages.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor

More

Packages that depend on sprint