ilog 0.0.9
ilog: ^0.0.9 copied to clipboard
Tiny Flutter debug logger that prints colorful, emoji-friendly logs to consoles
iLog â Colorful & Iconic Logging for Flutter đ¨ #

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:

đ§Š 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