platform/packages/pretty_logging/example/main.dart
Tobe O cf8e83552a Add 'packages/pretty_logging/' from commit 'd5150f9dee0969e66af0aecae17d0bbdaf2b44cf'
git-subtree-dir: packages/pretty_logging
git-subtree-mainline: a13d02069e
git-subtree-split: d5150f9dee
2020-02-15 18:28:16 -05:00

11 lines
285 B
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);
}