logger 0.4.0 copy "logger: ^0.4.0" to clipboard
logger: ^0.4.0 copied to clipboard

outdated

Small, easy to use and extensible logger which prints beautiful logs.

example/lib/main.dart

import 'package:logger/logger.dart';

var logger = Logger();

var loggerNoStack = Logger(printer: PrettyPrinter());

void main() {
  teesr();
}

void foo() {
  logger.v("Log message with 2 methods");

  logger.d("Log message with 2 methods", "MIST");

  logger.i("Log message with 2 methods");

  logger.w("Just a warning!");

  logger.e("Error! Something bad happened", "PROB");

  logger.wtf("Hello world.", "PROBLEM!", StackTrace.current);

  logger.d({"key": 5, "value": "something"});
}

void teesr() {
  foo();
}
3269
likes
0
pub points
100%
popularity

Publisher

verified publishersourcehorizon.org

Small, easy to use and extensible logger which prints beautiful logs.

Repository
View/report issues

License

unknown (license)

Dependencies

ansicolor

More

Packages that depend on logger