https://github.com/uncoded-decimal/nd_logs
A logging solution for Flutter/Dart apps built purely in Dart.
https://github.com/uncoded-decimal/nd_logs
dart-logger flutter-logger flutter-logs logging
Last synced: 8 months ago
JSON representation
A logging solution for Flutter/Dart apps built purely in Dart.
- Host: GitHub
- URL: https://github.com/uncoded-decimal/nd_logs
- Owner: uncoded-decimal
- License: apache-2.0
- Created: 2024-10-04T06:00:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-05T07:15:14.000Z (over 1 year ago)
- Last Synced: 2025-10-23T01:58:05.358Z (8 months ago)
- Topics: dart-logger, flutter-logger, flutter-logs, logging
- Language: Dart
- Homepage: https://pub.dev/packages/nd_logs
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# nd_logs
A logging solution for Flutter/Dart apps built purely in Dart.
Note that this is currently only tested for support on Android and iOS. Basic Web support has also been added. However, since web apps do not have access to the file-system as native apps do, **the logging for web is session based and it is saved to Downloads only on the call of the export method**.
## Getting Started
Add this code to begin:
```dart
WidgetsFlutterBinding.ensureInitialized();
await NDLogs.setupLogger();
```
You can start adding logs by simply calling:
```dart
NDLogs.logThis("My first log!");
```
To export logs,
```dart
final logFilePath = await NDLogs.exportLogFile();
```
To clear logs,
```dart
await NDLogs.clearLogs();
```
## Future Plans
- Add better ui to HTML log file
Feel free to suggest/ request features as you may desire. However, I'll work on them as I get to them.