{"id":30672953,"url":"https://github.com/janlionly/flutter_dev_colorized_log","last_synced_at":"2025-09-01T05:40:10.240Z","repository":{"id":251420359,"uuid":"713379435","full_name":"janlionly/flutter_dev_colorized_log","owner":"janlionly","description":"A Flutter package for logging colorized text in developer mode.","archived":false,"fork":false,"pushed_at":"2025-06-25T17:40:56.000Z","size":331,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T18:32:14.755Z","etag":null,"topics":["color-log","color-logger","color-logging","dart-debug","dart-log","flutter-debug","flutter-logg"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/janlionly.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,"zenodo":null}},"created_at":"2023-11-02T12:01:52.000Z","updated_at":"2025-06-25T17:40:59.000Z","dependencies_parsed_at":"2024-08-02T22:43:59.353Z","dependency_job_id":"a5d2e8e0-dbdf-4911-9ca8-55dc68a016fb","html_url":"https://github.com/janlionly/flutter_dev_colorized_log","commit_stats":null,"previous_names":["janlionly/flutter_dev_colorized_log"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/janlionly/flutter_dev_colorized_log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2Fflutter_dev_colorized_log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2Fflutter_dev_colorized_log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2Fflutter_dev_colorized_log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2Fflutter_dev_colorized_log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janlionly","download_url":"https://codeload.github.com/janlionly/flutter_dev_colorized_log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2Fflutter_dev_colorized_log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273077227,"owners_count":25041358,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["color-log","color-logger","color-logging","dart-debug","dart-log","flutter-debug","flutter-logg"],"created_at":"2025-09-01T05:40:09.509Z","updated_at":"2025-09-01T05:40:10.065Z","avatar_url":"https://github.com/janlionly.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dev Colorized Log\n\n[![pub package](https://img.shields.io/pub/v/dev_colorized_log.svg)](https://github.com/janlionly/flutter_dev_colorized_log)\u003ca href=\"https://github.com/janlionly/flutter_dev_colorized_log\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/janlionly/flutter_dev_colorized_log.svg?style=flat\u0026logo=github\u0026colorB=deeppink\u0026label=stars\" alt=\"Star on Github\"\u003e\u003c/a\u003e\n\nA Flutter package for logging colorized text in developer mode.\n\n## Usage\n\nSee examples to `/example` folder, more please run example project.\n\n```dart\n/* Global settings:*/\nDev.enable = true; // whether log msg\nDev.isLogFileLocation = true; // whether log the location file info\nDev.defaultColorInt = 0; // default color text, int value from 0 to 107\nDev.isDebugPrint = true; // Dev.print whether only log on debug mode\n\n/// V 2.0.4 newline replacement for better search visibility in console\nDev.isReplaceNewline = true; // whether replace newline characters (default false)\nDev.newlineReplacement = ' | '; // replacement string for newlines (default ' | ')\n\n/// V 2.0.3\nDev.prefixName = 'MyApp'; // prefix name\n\n/// V 2.0.2\nDev.isExeDiffColor = false; // whether execFinalFunc with different color\n\n/// V 2.0.0 the lowest level threshold to execute the function of customFinalFunc\nDev.exeLevel = DevLevel.logWar;\nDev.customFinalFunc = (msg, level) {\n  // e.g.: your custom write msg to file\n  writeToFile(msg, level);\n};\n\n\n/// V 1.2.8 colorize multi lines\nDev.log('===================== Colorize multi lines log =====================');\nconst multiLines = '''\n      🔴 [ERROR] UniqueID: 1\n      🕒 Timestamp: 2\n      📛 ErrorType: 3\n      💥 ErrorMessage: 4\n      📚 StackTrace: 5\n    ''';\nconst multiLines2 = 'Error1\\nError2\\nError3';\nDev.logError(multiLines);\nDev.logError(multiLines2);\n/// V 1.2.8 special error format log\nDev.print(e, error: e, level: DevLevel.logErr);\nDev.logError('$e', error: e);\nDev.exeError('$e', error: e, colorInt: 91);\n\n// V1.2.6 whether log on multi platform consoles like Xcode, VS Code, Terminal, etc.\nDev.isMultConsoleLog = true;\n\n// V1.2.2\nDev.isLogShowDateTime = true; // whether log the date time\nDev.isExeWithShowLog = true; // whether execFinalFunc with showing log\nDev.isExeWithDateTime = false; // whether execFinalFunc with date time\n\n// V1.2.1\nDev.exe(\"Exec Normal\");\nDev.exeInfo(\"Exec Info\");\nDev.exeSuccess(\"Exec Success\");\nDev.exeWarning(\"Exec Warning\");\nDev.exeError(\"Exec Error\");\nDev.exeBlink(\"Exec Blink\");\nDev.exe(\"Exec Normal without log\", isLog: false);\n\nDev.log('1.log success level', level: DevLevel.logSuc);\nDev.logSuccess('2.log success level');\nDev.log('1.log success level and exec', level: DevLevel.logSuc, execFinalFunc: true);\nDev.exe('2.log success level and exec', level: DevLevel.logSuc);\nDev.exeSuccess('3.log success level and exec');\n// END\n\n// V1.2.0 Execute the custom function\nDev.exe('!!! Exec Normal');\nDev.exe('!!! Exec Colorized text Info Without log', level: DevLevel.logInf, isMultConsole: true, isLog: false, colorInt: 101);\nDev.print('Colorized text print with the given level', level: DevLevel.logWar);\n// END\n\n// then every level log func contains execFinalFunc param:\nDev.log('Colorized text log to your process of log', execFinalFunc: true);\n\n// V1.1.6 custom function to support your process of log\n// Deprecated: Use exeFinalFunc instead (customFinalFunc will be removed in future versions)\n// Dev.customFinalFunc = (msg, level) {\n//   writeToFile(msg, level);  \n// };\n\n## Migration Guide\n\n### From customFinalFunc to exeFinalFunc (v2.0.6+)\n\nThe `customFinalFunc` has been renamed to `exeFinalFunc` for better naming consistency. The old name is deprecated but still works for backward compatibility.\n\n**Old way (deprecated):**\n```dart\nDev.customFinalFunc = (msg, level) {\n  writeToFile(msg, level);\n};\n```\n\n**New way (recommended):**\n```dart\nDev.exeFinalFunc = (msg, level) {\n  writeToFile(msg, level);\n};\n```\n\n**Priority:** If both `exeFinalFunc` and `customFinalFunc` are set, `exeFinalFunc` takes priority.\n\n**Infinite Recursion Prevention:** The library automatically prevents infinite recursion when `exeFinalFunc` or `customFinalFunc` calls Dev logging methods (like `Dev.exeError`, `Dev.exe`, etc.) internally.\n\n```dart\n// Safe: This won't cause infinite recursion\nDev.exeFinalFunc = (msg, level) {\n  writeToFile(msg, level);\n  Dev.exeError('Also log this error'); // Won't trigger exeFinalFunc again\n};\n```\n\n/* Log usage: */\nDev.log('Colorized text log'); // default yellow text\nDev.logInfo('Colorized text Info'); // blue text\nDev.logSuccess('Colorized text Success', execFinalFunc: true); // green text\nDev.logWarning('Colorized text Warning'); // yellow text\nDev.logError('Colorized text Error'); // red text\nDev.logBlink('Colorized text blink', isSlow: true, isLog: true); // blink orange text\n\n// Support to log on multi platform consoles like Xcode and VS Code\nDev.print('Dev text print', isDebug: true); // default log only on debug mode\n\n// Others:\nDev.log('Colorized text log other customs', fileLocation: 'main.dart:90xx', colorInt: 96);\n\n// Example: Multi-line log for better search visibility\nconst errorDetails = '''Error occurred:\n- File: user.dart:123\n- Function: validateEmail()\n- Reason: Invalid format''';\n\n// With replacement enabled (default):\nDev.logError(errorDetails); \n// Output: Error occurred: | - File: user.dart:123 | - Function: validateEmail() | - Reason: Invalid format\n\n// Example with messy whitespace:\nconst messyLog = '''  Error:  \n\tMultiple    spaces   and\ttabs\n   End with spaces  ''';\n\n// With replacement enabled - cleans up extra whitespace:\nDev.logError(messyLog);\n// Output: Error: | Multiple spaces and tabs | End with spaces\n\n// Without replacement:\nDev.isReplaceNewline = false;\nDev.logError(errorDetails);\n// Output: Error occurred:\n//         - File: user.dart:123\n//         - Function: validateEmail()\n//         - Reason: Invalid format\n```\n\n## Author\n\nVisit my github: [janlionly](https://github.com/janlionly)\u003cbr\u003e\nContact with me by email: janlionly@gmail.com\n\n## Contribute\nI would love you to contribute to **DevColorizedLog**\n\n## License\n**DevColorizedLog** is available under the MIT license. See the [LICENSE](https://github.com/janlionly/flutter_dev_colorized_log/blob/master/LICENSE) file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlionly%2Fflutter_dev_colorized_log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanlionly%2Fflutter_dev_colorized_log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlionly%2Fflutter_dev_colorized_log/lists"}