ilog 0.1.0 copy "ilog: ^0.1.0" to clipboard
ilog: ^0.1.0 copied to clipboard

Tiny Flutter debug logger that prints colorful, emoji-friendly logs to consoles

iLog – Colorful & Iconic Logging for Flutter 🎨 #

iLog Banner

iLog is a lightweight Flutter logger for creating readable, colorful, and iconic console log messages.
Each log type includes its own color and optional icon: Error, Warning, Success, Info, Debug, and Custom.


đŸ“Ļ Installation #

Add to your pubspec.yaml:

dependencies:
  ilog: ^1.0.0

Import the package:

import 'package:ilog/iLog.dart';

🚀 Usage #

void main() {
  // Error log
  ILog.error("Something went wrong!", icon: ILogIcon.cross);

  // Warning log
  ILog.warning("This is a warning.", icon: ILogIcon.warning);

  // Info log
  ILog.info("Informational message here.", icon: ILogIcon.info);

  // Success log
  ILog.success("Task completed successfully!", icon: ILogIcon.check);

  // Custom log
  ILog.custom(
    title: "Custom Log",
    text: "This is a custom log with your own color.",
    color: ILogColor.brightBlue,
    icon: ILogIcon.swirl,
  );
}

🎨 Colors & Codes #

Color ANSI Code Recommended Use
🔴 Red \x1B[31m Error
🚨 Bright Red \x1B[91m Critical Error
🟡 Yellow \x1B[33m Warning
⚡ Bright Yellow \x1B[93m High Visibility Warning
đŸŸĸ Green \x1B[32m Success
🌟 Bright Green \x1B[92m Extra Success
đŸ”ĩ Blue \x1B[34m Info
🌀 Bright Blue \x1B[94m Highlighted Info
💜 Magenta \x1B[35m Debug / Testing
✨ Cyan \x1B[36m Tips / Casual Info
âšĒ White \x1B[37m Neutral / Custom

💡 Icons #

Type Icons Description
Error ❌ đŸ’Ĩ 🚨 đŸ”Ĩ Problems, crash events
Warning âš ī¸ 🛑 ⚡ 🔔 Attention-required alerts
Success ✅ đŸŽ¯ 🌟 🏆 Completed operations
Info â„šī¸ 💡 🌀 📘 Informational messages
Debug/Test đŸ› ī¸ đŸ’Ģ 💭 ✨ Developer/debug logs
Fun âœŒī¸ Playful logs
Neutral/Custom 🔹 🔸 User-defined use

⚡ Features #

✔ Colorful themed logging
✔ Optional icon support
✔ error, warning, info, success, custom log types
✔ Automatically disabled in release mode
✔ Uses debugPrintThrottled for clean output


đŸ–Ĩ Example Output #

Example from a real terminal:

iLog Terminal Example


🧩 API Overview #

ILog.error(String text, {ILogIcon? icon}) #

Red colored error message.

ILog.warning(String text, {ILogIcon? icon}) #

Yellow colored warning.

ILog.info(String text, {ILogIcon? icon}) #

Blue colored informational message.

ILog.success(String text, {ILogIcon? icon}) #

Green colored success message.

ILog.custom({String? title, required String text, ILogColor? color, ILogIcon? icon}) #

Fully customizable log line.


📄 License #

MIT License © 2025 — iLog Developer

11
likes
0
points
231
downloads

Publisher

unverified uploader

Weekly Downloads

Tiny Flutter debug logger that prints colorful, emoji-friendly logs to consoles

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ilog