π log_er - Powerful & Colorful Logging for Flutter & Dart
πΉ log_er is a structured, colorful, and emoji-enhanced logging package for Dart & Flutter.
πΉ Supports custom log levels, JSON logging, stack traces, and more!
π― Features
β
Color-coded logs for better readability π¨
β
Supports multiple log levels π·οΈ
β
Easy-to-use API π
β
Emoji-enhanced log messages π
β
Prettified JSON logging π
β
File and API logging support (soon!) π₯
π¦ Installation
Add the following to your pubspec.yaml:
dependencies:
log_er: ^2.0.4
Then run:
flutter pub get
π Quick Start
1οΈβ£ Import the Package
import 'package:log_er/log_er.dart';
2οΈβ£ Log Messages
Log.debug("Initializing app...", fileName: "main.dart");
Log.info("User logged in successfully.", fileName: "auth_service.dart");
Log.warning("Low memory detected!", fileName: "performance_monitor.dart");
Log.error("Failed to fetch API data!", fileName: "network_service.dart");
Log.fatal("System crashed!", fileName: "core_system.dart");
π·οΈ Log Levels
| Level | Emoji | Usage Example |
|---|---|---|
| DEBUG | πΊ | Log.debug("Debugging...", fileName: "main.dart"); |
| INFO | π΅ | Log.info("User logged in.", fileName: "auth.dart"); |
| WARNING | π¨ | Log.warning("Slow network detected.", fileName: "network.dart"); |
| ERROR | π₯ | Log.error("Database connection failed!", fileName: "db.dart"); |
| FATAL | π | Log.fatal("Critical failure!", fileName: "system.dart"); |
| SPECIAL | π | Log.special("Feature flag enabled.", fileName: "config.dart"); |
| DATA | β | Log.data({"user": "John"}, fileName: "api.dart"); |

π Logging Structured Data
Log.json({
"status": "success",
"user": {"id": 1, "name": "John Doe"}
}, fileName: "api_service.dart");
βοΈ Configuration
Customize logging behavior by passing a custom logger:
Log(logger: FileLogger("logs.txt")).info("App started", fileName: "main.dart");
π Upcoming Features
- File-based logging
- API remote logging
- Log filtering & searching
- Performance optimizations
π License
log_er is licensed under the MIT License.
π Made with β€οΈ by Developeryilmaz.
π Star this repo on GitHub if you found it useful! π