{"id":32299429,"url":"https://github.com/dev-kasibhatla/log_plus","last_synced_at":"2026-02-20T22:01:49.114Z","repository":{"id":224504977,"uuid":"763362225","full_name":"dev-kasibhatla/log_plus","owner":"dev-kasibhatla","description":"A simple customisable logger written in pure dart. Works with CLI applications and flutter app. Log levels, coloured console output, log history, records stack traces.","archived":false,"fork":false,"pushed_at":"2024-02-28T06:39:46.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T05:02:08.290Z","etag":null,"topics":["dart","flutter","logging"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-kasibhatla.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}},"created_at":"2024-02-26T06:36:00.000Z","updated_at":"2024-12-09T12:54:49.000Z","dependencies_parsed_at":"2024-02-27T05:46:12.865Z","dependency_job_id":null,"html_url":"https://github.com/dev-kasibhatla/log_plus","commit_stats":null,"previous_names":["dev-kasibhatla/logs","dev-kasibhatla/log_plus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-kasibhatla/log_plus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-kasibhatla%2Flog_plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-kasibhatla%2Flog_plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-kasibhatla%2Flog_plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-kasibhatla%2Flog_plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-kasibhatla","download_url":"https://codeload.github.com/dev-kasibhatla/log_plus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-kasibhatla%2Flog_plus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29666423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dart","flutter","logging"],"created_at":"2025-10-23T05:01:36.566Z","updated_at":"2026-02-20T22:01:49.109Z","avatar_url":"https://github.com/dev-kasibhatla.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage](https://img.shields.io/codecov/c/github/dev-kasibhatla/log_plus)](https://github.com/dev-kasibhatla/log_plus)\n[![License](https://img.shields.io/github/license/dev-kasibhatla/log_plus)](https://github.com/dev-kasibhatla/log_plus/blob/main/LICENSE)\n[![Tests](https://img.shields.io/github/actions/workflow/status/dev-kasibhatla/log_plus/.github%2Fworkflows%2Fdart-tests.yml)](https://github.com/dev-kasibhatla/log_plus/actions)\n\n# log_plus\nSmall, feature-rich logging package for Dart and Flutter.\nWritten in pure Dart, with no dependencies.\n\n## Features\n\n- [x] Multiple Log Levels: Define distinct log levels to categorize messages.\n- [x] Formatted Console Logs: Print logs to the console in a structured and readable format with color-coded log levels\n- [x] Selective Output: Control console output based on log levels to streamline debugging workflows\n- [x] In-Memory Log Storage: Store logs in memory for post-execution analysis and troubleshooting\n- [x] Enhanced Debugging: Optionally include and print stack traces alongside log messages to expedite debugging\n\n## Getting started\n\n1. Install the package\n2. Import the package\n3. Create a new instance of `Logs` and start logging. Use the same instance across your application to maintain a single log history.\n\n## Screenshots\n![View structured and coloured output in console](https://raw.githubusercontent.com/dev-kasibhatla/log_plus/main/extra/images/coloured_output.png)\n\nView structured and coloured output in console\n\n![Optionally include stack trace in logs](https://raw.githubusercontent.com/dev-kasibhatla/log_plus/main/extra/images/traces.png)\n\nOptionally include stack trace in logs\n\n## Usage\n\nGet started with no configuration:\n\n```dart\nimport 'package:log_plus/log_plus.dart';\n\nvoid main() {\n    final log = Logs();\n    log.v('This is a verbose message');\n    log.d('This is a debug message');\n    log.i('This is an info message');\n    log.w('This is a warning message');\n    log.e('This is an error message', includeStackTrace: true); // Optionally include stack trace\n}\n```\n\nCustomise output and storage:\n\n```dart\nimport 'package:log_plus/log_plus.dart';\n\nvoid main() {\n    final log = Logs(\n        storeLogLevel: LogLevel.warning, // Store logs with warning level and above\n        printLogLevelWhenDebug: LogLevel.verbose, // Print logs with verbose level and above in debug mode\n        printLogLevelWhenRelease: LogLevel.error, // Print logs with error level and above in release mode\n        storeLimit: 500, // Store up to 500 logs in memory\n    );\n\n    log.v('This is a verbose message'); // Will be printed in debug mode, but not stored\n    log.d('This is a debug message'); // Will be printed in debug mode, but not stored\n    log.i('This is an info message'); // Will be printed in debug mode, but not stored\n    log.w('This is a warning message', includeStackTrace: true); // Optionally include stack trace\n    log.e('This is an error message', includeStackTrace: true); // Optionally include stack trace\n}\n```\n\n## Additional information\nReport any issues or feature requests on the [GitHub repository](https://github.com/dev-kasibhatla/log_plus/issues).\nPRs welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-kasibhatla%2Flog_plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-kasibhatla%2Flog_plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-kasibhatla%2Flog_plus/lists"}