rmwlog 1.0.6 copy "rmwlog: ^1.0.6" to clipboard
rmwlog: ^1.0.6 copied to clipboard

outdated

simple log , can custom log output function

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() {
  // can use custom output function
  logConfig[1] = (stack, msg) {
    stderr.write((stack ?? '') + " :\n💀" + msg + '\n');
  };
  log('version', 1.0);
  logw('warning');
  loge('xxx', Exception(1234));
}

0
likes
0
pub points
23%
popularity

Publisher

verified publisherrmw.link

simple log , can custom log output function

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

stack_trace

More

Packages that depend on rmwlog