🚀 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 🏷️
Custom color log functions 🌈
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

Import the Package

import 'package:log_er/log_er.dart';

Log Messages

Log.debug("Initializing app...");
Log.info("User logged in successfully.");
Log.warning("Low memory detected!");
Log.error("Failed to fetch API data!");
Log.fatal("System crashed!");
Log.json('{ "status": "success", "user": "John Doe" }');

🏷️ Log Levels

Level Emoji Usage Example
DEBUG 🔹 Log.debug("Debugging...");
INFO Log.info("User logged in.");
WARNING 🚨 Log.warning("Slow network detected.");
ERROR Log.error("Database connection failed!");
FATAL 💀 Log.fatal("Critical failure!");
JSON 🍺 Log.json("{ "status": "ok" }");

🌈 Custom Color Log Methods

Log.red("This is a red message.");
Log.green("This is a green message.");
Log.yellow("This is a yellow message.");
Log.blue("This is a blue message.");
Log.cyan("This is a cyan message.");
Log.magenta("This is a magenta message.");

log_er Banner


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

Libraries

log_er