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

outdated

Simple and pretty log package for Dart.

Dog #

Pub Version

Simple and pretty log package for Dart.

Getting Started #

Install #

dependencies:
  dog: any # replace 'any' with version number.
import 'package:dog/dog.dart';

Usage #

// simple log
dog.v('verbose');
dog.d('debug');
dog.i('info');
dog.w('warning');
dog.e('error');

// Map.
dog.i({
  'a': 1,
  'b': {'b1': '2', 'b2': '2'},
  'c': 3
});
// Iterable.
dog.w([1, 2, 3, 4, 5]);
// Function.
dog(() => 'This this a message returned by Function.');

// Exception/StackTrace
try {
  throw Exception('This is an exception.');
} catch (e, st) {
  dog.e(e, stackTrace: st);
}

// tag and title support
dog.i({'success': true}, tag: 'HTTP', title: 'Response: https://api.example.com/');

Thanks #

logger: Logger for android.

11
likes
30
pub points
79%
popularity

Publisher

unverified uploader

Simple and pretty log package for Dart.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

ansicolor, stack_trace

More

Packages that depend on dog