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