ilog 0.2.0
ilog: ^0.2.0 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.
โก Features #
โ Colorful themed logging
โ Optional icon support
โ error, warning, info, success, custom log types
โ Automatically disabled in release mode
โ Uses debugPrintThrottled for clean output
โ Neon color theme support (via ILog.config(isNeon: true))
๐ Usage #
void log() {
// All standard ILog methods (error, warning, info, success) accept an optional 'icon' parameter
// to override the default icon.
ILog.error("Something went wrong!");
ILog.warning("This is a warning.");
ILog.info("Informational message here.");
ILog.success("Task completed successfully!");
// Custom log
ILog.custom(title: 'Custom Log', text: 'This is a custom log message.', color: ILogColor.orange, icon: ILogIcon.rainbow);
// Override example
ILog.success("Changed icon successfully!", icon: ILogIcon.target);
}
๐ฅ Example Output #

๐ ๏ธ Configuration #
void main() {
// Use the config method to customize the default icons for error, warning, info, and success logs.
// Accepts optional default icons and the boolean flag [isNeon] to enable neon colors
ILog.config(errorIcon: ILogIcon.bomb, warningIcon: ILogIcon.thunder, infoIcon: ILogIcon.magnifyingGlass, successIcon: ILogIcon.star);
}
๐ฅ Example Output #

๐ Configuration for neon colors #
void main() {
// Enable the bright color theme (neon) for all default logs (Error, Warning, Info, Success).
ILog.config(isNeon: true);
}
๐ฅ Example Output #

๐จ Colors #
| Enum Value | Color Description | Recommended Use |
|---|---|---|
ILogColor.red |
Red | Error / Failure |
ILogColor.brightRed |
Bright Red | Critical Error |
ILogColor.yellow |
Yellow | Warning |
ILogColor.brightYellow |
Bright Yellow | High Visibility Warning |
ILogColor.green |
Green | Success |
ILogColor.brightGreen |
Bright Green | Extra Confirmation / Start |
ILogColor.blue |
Blue | Information (Info) / Process |
ILogColor.brightBlue |
Bright Blue | Highlighted Information |
ILogColor.magenta |
Magenta | Debug / Test Data |
ILogColor.brightMagenta |
Bright Magenta | Fancy Debug |
ILogColor.brightCyan |
Bright Cyan | Highlighted Tips |
ILogColor.white |
White | Neutral Text / Standard Text |
ILogColor.brightWhite |
Bright White | (Standard Terminal) |
ILogColor.black |
Black | Minimal Logs |
ILogColor.brightBlack |
Bright Black (Grey) | Low-Priority Logs (Grey) |
ILogColor.orange |
Orange | Custom Highlight |
ILogColor.purple |
Purple | Custom Detailed Information (Detail) |
๐ก Icons #
| Enum Value | Icon | Category / Purpose |
|---|---|---|
ILogIcon.cross |
โ | Error |
ILogIcon.bomb |
๐ฃ | Error |
ILogIcon.skull |
๐ | Error |
ILogIcon.alert |
๐จ | Error |
ILogIcon.stopSign |
๐ | Error |
ILogIcon.explosion |
๐ฅ | Error |
ILogIcon.warning |
โ ๏ธ | Warning |
ILogIcon.thunder |
โก | Warning |
ILogIcon.triangle |
๐บ | Warning |
ILogIcon.caution |
โ ๏ธ | Warning |
ILogIcon.exclamation |
โ | Warning |
ILogIcon.bell |
๐ | Warning |
ILogIcon.hazard |
โฃ๏ธ | Warning |
ILogIcon.check |
โ | Success |
ILogIcon.star |
โญ | Success |
ILogIcon.trophy |
๐ | Success |
ILogIcon.medal |
๐ | Success |
ILogIcon.target |
๐ฏ | Success |
ILogIcon.sparkles |
โจ | Success |
ILogIcon.thumbsUp |
๐ | Success |
ILogIcon.info |
โน๏ธ | Info |
ILogIcon.lightBulb |
๐ก | Info |
ILogIcon.spiral |
๐ | Info |
ILogIcon.book |
๐ | Info |
ILogIcon.clipboard |
๐ | Info |
ILogIcon.page |
๐ | Info |
ILogIcon.magnifyingGlass |
๐ | Info |
ILogIcon.wrench |
๐ ๏ธ | Debug / Test |
ILogIcon.dizzy |
๐ซ | Debug / Test |
ILogIcon.thought |
๐ญ | Debug / Test |
ILogIcon.gear |
โ๏ธ | Debug / Test |
ILogIcon.bug |
๐ | Debug / Test |
ILogIcon.hammer |
๐จ | Debug / Test |
ILogIcon.testTube |
๐งช | Debug / Test |
ILogIcon.victoryHand |
โ๏ธ | Fun / Victory |
ILogIcon.smile |
๐ | Fun / Victory |
ILogIcon.party |
๐ฅณ | Fun / Victory |
ILogIcon.confetti |
๐ | Fun / Victory |
ILogIcon.rainbow |
๐ | Fun / Victory |
ILogIcon.balloon |
๐ | Fun / Victory |
ILogIcon.medalFun |
๐ | Fun / Victory |
ILogIcon.diamond |
๐น | Custom / Neutral |
ILogIcon.triangleBlue |
๐ท | Custom / Neutral |
ILogIcon.circle |
โช | Custom / Neutral |
ILogIcon.square |
โผ๏ธ | Custom / Neutral |
ILogIcon.sparkle |
โจ | Custom / Neutral |
ILogIcon.wave |
๐ | Custom / Neutral |
ILogIcon.swirl |
๐ | Custom / Neutral |
ILogIcon.pin |
๐ | Emotional / Pin |
ILogIcon.heart |
โค๏ธ | Emotional |
ILogIcon.heartBroken |
๐ | Emotional |
ILogIcon.laugh |
๐ | Emotional |
ILogIcon.cry |
๐ญ | Emotional |
ILogIcon.wink |
๐ | Emotional |