lumberjack 1.0.0-rc.1

Dart native js
Flutter Android iOS web

Hierarchical logging for Dart. Supports multiple transports, zones, and more.

lumberjack #

Improved hierarchical logging for Dart.

// Simple usage
var logger = Logger('example');
logger.informational('Hey!!!');

// Hierarchy
var baz = logger.createChild('bar').createChild('baz');
baz.notice('example.foo.bar.baz');

// Intercept print, errors.
logger.runZoned(() async {
    await doSomething();
}, onError: () => 34);

logger.error('...', e, st);

// Printing (with colors)
logger.pipe(AnsiLogPrinter.toStdout());
logger.pipe(StringSinkLogPrinter(myStringBuffer));

// Patch over package:logging
var converter = ConvertingLogger(oldLogger);
converter.error('...');
oldLogger.severe('...');

await for (var log in logger) {
    // ... Do something...
}
0
likes
90
pub points
0%
popularity

Hierarchical logging for Dart. Supports multiple transports, zones, and more.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

thosakwe@gmail.com

License

MIT (LICENSE)

Dependencies

intl, io, logging, meta, quiver_hashcode

More

Packages that depend on lumberjack