Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chenenyu committed Nov 13, 2020
1 parent 1f36c88 commit 322540e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.0.0] - 2020/11/13

* Support web platform.

## [0.4.0] - 2020/11/12

* Support custom caller info getter in `formatter`. This is useful when you wrap `dog` in other log class.
Expand Down
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Pub Version](https://img.shields.io/pub/v/dog)](https://pub.dev/packages/dog)

Simple and pretty log package for Dart.
Simple and pretty log package for Dart, includes Flutter and web.

## Getting Started

Expand Down Expand Up @@ -59,6 +59,28 @@ dog.i({'success': true}, tag: 'HTTP', title: 'Response: https://api.example.com/
```
![](art/4.png)

Web platform support:

![chrome](art/chrome.png)

#### Dog level

See [Level](lib/src/level.dart).
```dart
// disable Dog
Dog.level = Level.OFF;
```

#### Formatter

[`PrettyFormatter`](lib/src/formatter/pretty_formatter.dart): Convert message to pretty styles.
[`SimpleFormatter`](lib/src/formatter/simple_formatter.dart): Format message without borders.

#### Emitter

[`ConsoleEmitter`](lib/src/emitter/console_formatter.dart): Output message to console.
[`FileEmitter`](lib/src/emitter/file_formatter.dart): Output message to file, it doesn't support web platform.

## Thanks

[logger](https://github.com/orhanobut/logger): Logger for android.
Binary file added art/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: dog
description: Simple and pretty log package for Dart.
version: 0.4.0
description: Simple and pretty log package for Dart, includes Flutter and web.
version: 1.0.0
repository: https://github.com/chenenyu/dog
publish_to: https://pub.dev

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: ">=2.8.0 <3.0.0"

dependencies:
ansicolor: ^1.0.5
Expand Down

0 comments on commit 322540e

Please sign in to comment.