🚀 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! 🌟