log_er 2.0.3 copy "log_er: ^2.0.3" to clipboard
log_er: ^2.0.3 copied to clipboard

log_er - Powerful & Colorful Logging for Flutter and Dart. Advanced structured logging package with rich formatting, stack traces, and debugging support.

🚀 log_er - Powerful & Colorful Logging for Flutter & Dart #

Dart CI Pub Version License GitHub Stars GitHub Issues GitHub Forks Code Size

🔹 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");

log_er Banner


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

1
likes
160
points
311
downloads

Documentation

API reference

Publisher

verified publisherpharraxsoftware.com

Weekly Downloads

log_er - Powerful & Colorful Logging for Flutter and Dart. Advanced structured logging package with rich formatting, stack traces, and debugging support.

Repository (GitHub)
View/report issues

Topics

#logging #debugging #monitoring

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

characters

More

Packages that depend on log_er