πŸš€ 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