rmwlog

Last updated:

0 purchases

rmwlog Image
rmwlog Images
Add to Cart

Description:

rmwlog

rmwlog #
simple log , can custom log output function
use #
import 'dart:io';
import 'package:rmwlog/init.dart';

// import if you need custom output function
import 'package:rmwlog/config.dart' show logConfig;

void main() async {
// can use custom output function
logConfig[1] = (stack, msg) {
stderr.write(stack + " :\nšŸ’€" + msg + '\n');
};

log('version', 1.0);
logw('warning');
for (var i = 0; i < 3; ++i) {
loge('something happended', Exception(i));
}
await Future.delayed(Duration(seconds: 1));
log(123);
}

copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.