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

iLog is a Flutter package for creating readable, colorful, and iconic console log messages. Each log type has its own default color and symbol: Error, Warning, Success, Info, Debug, and Custom.
đĻ Installation #
Add to your pubspec.yaml:
dependencies:
iLog: ^1.0.0
Then run:
flutter pub get
đ Usage #
import 'package:iLog/iLog.dart';
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 & Usage #
| 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 / Test |
| ⨠Cyan | \x1B[36m |
Tips / Informational |
| âĒ White | \x1B[37m |
Neutral / Custom |
đĄ Icons #
| Type | Icons | Description |
|---|---|---|
| Error | â, đĨ, đ¨, đĨ | Problems and critical errors |
| Warning | â ī¸, đ, âĄ, đ | Attention-required alerts |
| Success | â , đ¯, đ, đ | Successful operations |
| Info | âšī¸, đĄ, đ, đ | Informational messages |
| Debug / Test | đ ī¸, đĢ, đ, ⨠| Debugging and testing logs |
| Victory / Fun | âī¸ | Fun / playful logs |
| Custom / Neutral | đš, đ¸ | User-defined log messages |
⥠Features #
- Colorful and highlighted console logs
error,warning,info,success, andcustomlog types- Default and optional icon support per log type
- Automatically disabled in release mode (
kReleaseMode)
đ Example Output #
[iLog Terminal Example]