Skip to content

Commit 20b5858

Browse files
committed
Small updates
1 parent a1a0b92 commit 20b5858

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.vscode/
12
.DS_Store
23
.dart_tool/
34
.idea/

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ Instead of a string message, you can also pass other objects like `List`, `Map`
2929

3030
## Log Console
3131

32-
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.
32+
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.
3333

3434
| ![](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) |
3535
|---|---|---|
3636

37+
# Documentation
38+
3739
## Log level
3840

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

146148

149+
## logger_flutter extension
150+
151+
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.
152+
153+
1. [Add logger_flutter](https://pub.dev/packages/logger_flutter#-installing-tab-) to your `pubspec.yaml`
154+
2. Add the following code into your widget tree
155+
156+
```dart
157+
LogConsoleOnShake(
158+
child: Container() // Your widgets
159+
),
160+
```
161+
162+
More documentation coming soon.
163+
147164
## MIT License
148165
```
149166
Copyright (c) 2019 Simon Leier

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: logger
22
description: Small, easy to use and extensible logger which prints beautiful logs.
3-
version: 0.6.0
3+
version: 0.7.0
44
author: Simon Leier <[email protected]>
55
homepage: https://github.com/leisim/logger
66

0 commit comments

Comments
 (0)