cherrilog 0.2.0 copy "cherrilog: ^0.2.0" to clipboard
cherrilog: ^0.2.0 copied to clipboard

Perhaps the simplest and most useful log library for dart. Lightweight and easy to apply.

example/cherrilog_example.dart

import 'package:cherrilog/cherrilog.dart';

void main() {
  CherriLog.init(
    options: CherriOptions()
      ..logLevelRange = CherriLogLevelRanges.all
      ..useBuffer = false,
  ).logTo(CherriConsole()); // Use `CherriFile()` instead of `CherriConsole` if you want to log to file system

  debug('You are doing something right');

  info('You are doing something');

  warning('You are doing something wrong');

  error('You can not shutdown power');

  fatal('The power is off');
}
4
likes
140
pub points
67%
popularity

Publisher

unverified uploader

Perhaps the simplest and most useful log library for dart. Lightweight and easy to apply.

Repository (GitHub)
View/report issues

Topics

#logging #utility

Documentation

API reference

License

LGPL-2.1 (LICENSE)

Dependencies

dart_art, intl, stack_trace

More

Packages that depend on cherrilog