sprint 3.0.0 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.
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() {}
}