Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g1j0shi/logster
An extensible logger for applications, packages and plugins.
https://github.com/g1j0shi/logster
dart flutter log logster pub
Last synced: about 1 month ago
JSON representation
An extensible logger for applications, packages and plugins.
- Host: GitHub
- URL: https://github.com/g1j0shi/logster
- Owner: G1J0SHI
- License: bsd-3-clause
- Created: 2022-11-11T15:27:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-13T13:50:29.000Z (about 2 years ago)
- Last Synced: 2024-11-15T06:53:01.889Z (2 months ago)
- Topics: dart, flutter, log, logster, pub
- Language: Dart
- Homepage: https://pub.dev/packages/logster
- Size: 142 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Logster for Dart/Flutter
![publisher][publisher]
![version][version]
![likes][likes]
![points][points]
![popularity][popularity]---
**_An extensible logger for applications, packages and plugins._**
---
## Features
Logging and Debugging Tools
---
## Getting started
To add the package, `logster`, in a project:
1. Depend on it
- Add `logster` under `dependencies` in the `pubspec.yaml` file
```yaml
dependencies:
logster: any
```- Or run this command
```sh
dart pub add logster
```2. Install it
- From the terminal: Run
```sh
dart pub get
```3. Import it
- Add a corresponding `import` statement in the source code
```dart
import 'package:logster/logster.dart';
```---
## Usage
To use the package, add the `.logs` extension to any variable, and it will print a log to the console along with its runtime type.
```dart
var a = 10;
a.logs; // [int] 10
``````dart
var b = 2.0;
b.logs; // [double] 2.0
``````dart
var c = 'x';
c.logs; // [String] x
``````dart
var d = true;
d.logs; // [bool] true
``````dart
var e = [a, b];
e.logs; // [List] [10, 2.0]
``````dart
var f = {c, d};
f.logs; // [CompactImmutableLinkedHashSet] {x, true}
``````dart
var g = {a: b, c: d};
g.logs; // [InternalImmutableLinkedHashMap] {10: 2.0, x: true}
```---
[publisher]: https://img.shields.io/pub/publisher/logster
[version]: https://img.shields.io/pub/v/logster
[likes]: https://img.shields.io/pub/likes/logster
[points]: https://img.shields.io/pub/points/logster
[popularity]: https://img.shields.io/pub/popularity/logster