sprint 1.0.2+4 sprint: ^1.0.2+4 copied to clipboard
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 [...]
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() {}
}