ilog 0.2.0 copy "ilog: ^0.2.0" to clipboard
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 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.


โšก 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 #

iLog Terminal Example


๐Ÿ› ๏ธ 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 #

iLog Terminal Example


๐ŸŒˆ 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 #

iLog Terminal Example


๐ŸŽจ 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
11
likes
160
points
231
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ilog