loggerw 1.0.1 copy "loggerw: ^1.0.1" to clipboard
loggerw: ^1.0.1 copied to clipboard

outdated

Small, easy to use and extensible fork of logger which prints beautiful logs and records them into your API of choice.

example/main.dart

import 'package:loggerw/loggerw.dart';

var logger = Logger(
  printer: PrettyPrinter(),
);

var loggerNoStack = Logger(
  printer: PrettyPrinter(methodCount: 0),
);

void main() {
  print(
      'Run with either `dart example/main.dart` or `dart --enable-asserts example/main.dart`.');
  demo();
}

void demo() {
  logger.d('Log message with 2 methods');

  loggerNoStack.i('Info message');

  loggerNoStack.w('Just a warning!');

  logger.e('Error! Something bad happened', error: 'Test Error');

  loggerNoStack.t({'key': 5, 'value': 'something'});

  Logger(printer: SimplePrinter(colors: true)).t('boom');
}
2
likes
0
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

Small, easy to use and extensible fork of logger which prints beautiful logs and records them into your API of choice.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on loggerw