pretty_logging 1.0.0 copy "pretty_logging: ^1.0.0" to clipboard
pretty_logging: ^1.0.0 copied to clipboard

Standalone helper for colorful logging output, using pkg:io AnsiCode.

example/main.dart

import 'package:logging/logging.dart';
import 'package:pretty_logging/pretty_logging.dart';

void main() {
  Logger.root
    ..level = Level.ALL
    ..onRecord.listen(prettyLog)
    ..info('Hey!')
    ..finest('Bye!')
    ..severe('Oops!', StateError('Wrong!'), StackTrace.current);
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Standalone helper for colorful logging output, using pkg:io AnsiCode.

Repository (GitHub)
View/report issues

License

LGPL-3.0 (LICENSE)

Dependencies

io, logging

More

Packages that depend on pretty_logging