{"id":24941930,"url":"https://github.com/moein-dev/colorful_log","last_synced_at":"2026-05-01T15:36:41.390Z","repository":{"id":274462922,"uuid":"922987625","full_name":"Moein-dev/colorful_log","owner":"Moein-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-04T13:30:47.000Z","size":315,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T14:34:35.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Moein-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-27T13:00:46.000Z","updated_at":"2025-02-04T13:30:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b70c5da-7566-4241-9b00-dc8bc3998a50","html_url":"https://github.com/Moein-dev/colorful_log","commit_stats":null,"previous_names":["moein-dev/colorful_log"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moein-dev%2Fcolorful_log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moein-dev%2Fcolorful_log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moein-dev%2Fcolorful_log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moein-dev%2Fcolorful_log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Moein-dev","download_url":"https://codeload.github.com/Moein-dev/colorful_log/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246082611,"owners_count":20720830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-02T18:57:21.203Z","updated_at":"2026-05-01T15:36:41.348Z","avatar_url":"https://github.com/Moein-dev.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Colorful Log Plus\n\nA simple and powerful debugging logger for Dart applications. This package allows developers to log messages with customizable colors, icons, and context information, making debugging easier and more organized.\n\n## Features\n\n- 📝 **Customizable log messages** with tags, colors, and icons.\n- 🎨 **ANSI color codes** for terminal output.\n- 🛑 **Error and stack trace logging**.\n- 🔍 **Source file location tracking** (optional).\n- 🚀 **Lightweight and easy to use**.\n\n---\n\n## Installation\n\nAdd the following dependency to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  colorful_log_plus: ^1.0.8\n```\n\nThen, run:\n\n```sh\nflutter pub get\n```\n\n---\n\n## Importing the Package\n\n```dart\nimport 'package:colorful_log_plus/colorful_log_plus.dart';\n```\n\n---\n\n## Usage\n\n### Basic Logging\n\n```dart\ndebugLog(message: \"This is a simple log message\");\n```\n\n### Logging with a Custom Tag\n\n```dart\ndebugLog(tag: 'Auth', message: \"User logged in successfully\");\n```\n\n### Using Colors\n\n```dart\ndebugLog(\n  message: \"This is a warning message\",\n  color: LogColor.yellow,\n);\n```\n\n### Adding an Icon\n\n```dart\ndebugLog(\n  iconType: LogIconType.error,\n  message: \"Failed to fetch data\",\n);\n```\n\n### Logging Errors with Stack Trace\n\n```dart\ntry {\n  throw Exception(\"Something went wrong\");\n} catch (e, stack) {\n  debugLog(\n    message: \"An error occurred\",\n    iconType: LogIconType.error,\n    color: LogColor.red,\n    error: e,\n    stackTrace: stack,\n  );\n}\n```\n\n### Showing Source File Location\n\n```dart\ndebugLog(\n  message: \"Debugging in progress...\",\n  showLogAddress: true,\n);\n```\n\n---\n\n## Log Levels and Icons\n\n| Log Type  | Icon  |\n|-----------|-------|\n| Info      | ℹ️  |\n| Warning   | ⚠️  |\n| Error     | ❌  |\n| Debug     | 🐛  |\n\n---\n\n## Available Colors\n\n| Name    | Example |\n|---------|---------|\n| Reset   | 🔲 Reset |\n| Red     | 🟥 Red |\n| Green   | 🟩 Green |\n| Yellow  | 🟨 Yellow |\n| Blue    | 🟦 Blue |\n| Magenta | 🟪 Magenta |\n| Cyan    | 🟦 Cyan |\n\n---\n\n## Contributing\n\nFeel free to open issues or submit pull requests to improve this package!\n\n---\n\n## License\n\nThis package is available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoein-dev%2Fcolorful_log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoein-dev%2Fcolorful_log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoein-dev%2Fcolorful_log/lists"}