Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
simc committed Jul 5, 2019
1 parent a1a0b92 commit 20b5858
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode/
.DS_Store
.dart_tool/
.idea/
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ Instead of a string message, you can also pass other objects like `List`, `Map`

## Log Console

If you are creating a Flutter app, you can use the [logger_flutter](#logger-flutter) extension. Shake the phone to show an on device console.
If you are creating a Flutter app, you can use the [logger_flutter](#logger-flutter-extension) extension. Shake the phone to show an on device console.

| ![](https://raw.githubusercontent.com/leisim/logger/master/art/log_console_before.png) | ![](https://raw.githubusercontent.com/leisim/logger/master/art/log_console_light.png) | ![](https://raw.githubusercontent.com/leisim/logger/master/art/log_console_dark.png) |
|---|---|---|

# Documentation

## Log level

You can log with different levels:
Expand Down Expand Up @@ -144,6 +146,21 @@ class ConsoleOutput extends LogOutput {
Possible future `LogOutput`s could send to a file, firebase or to Logcat. Feel free to open pull requests.


## logger_flutter extension

The [logger_flutter](https://pub.dev/packages/logger_flutter) package is an extension for logger. You can add it to any Flutter app. Just shake the phone to show the console.

1. [Add logger_flutter](https://pub.dev/packages/logger_flutter#-installing-tab-) to your `pubspec.yaml`
2. Add the following code into your widget tree

```dart
LogConsoleOnShake(
child: Container() // Your widgets
),
```

More documentation coming soon.

## MIT License
```
Copyright (c) 2019 Simon Leier
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: logger
description: Small, easy to use and extensible logger which prints beautiful logs.
version: 0.6.0
version: 0.7.0
author: Simon Leier <simonleier@gmail.com>
homepage: https://github.com/leisim/logger

Expand Down

0 comments on commit 20b5858

Please sign in to comment.