rmwlog 1.0.10 icon indicating copy to clipboard operation
rmwlog: ^1.0.10 copied to clipboard

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() 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);
}

0
likes
120
pub points
0%
popularity

Publisher

verified publisher iconrmw.link

simple log , can custom log output function

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MPL-2.0 (LICENSE)

Dependencies

colorize, stack_trace

More

Packages that depend on rmwlog