{"id":17168087,"url":"https://github.com/yanshouwang/log_service","last_synced_at":"2025-10-17T15:48:24.505Z","repository":{"id":204379827,"uuid":"710774271","full_name":"yanshouwang/log_service","owner":"yanshouwang","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-30T09:12:16.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T18:34:01.733Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/yanshouwang.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":"2023-10-27T12:12:22.000Z","updated_at":"2024-11-21T03:30:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"2556ca84-b829-4be3-afb8-89c346814937","html_url":"https://github.com/yanshouwang/log_service","commit_stats":null,"previous_names":["yanshouwang/log_service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yanshouwang/log_service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanshouwang%2Flog_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanshouwang%2Flog_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanshouwang%2Flog_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanshouwang%2Flog_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanshouwang","download_url":"https://codeload.github.com/yanshouwang/log_service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanshouwang%2Flog_service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279370643,"owners_count":26157152,"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-10-17T02:00:07.504Z","response_time":56,"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":[],"created_at":"2024-10-14T23:11:09.585Z","updated_at":"2025-10-17T15:48:24.453Z","avatar_url":"https://github.com/yanshouwang.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- \nThis README describes the package. If you publish this package to pub.dev,\nthis README's contents appear on the landing page for your package.\n\nFor information about how to write a good package README, see the guide for\n[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). \n\nFor general information about developing packages, see the Dart guide for\n[creating packages](https://dart.dev/guides/libraries/create-library-packages)\nand the Flutter guide for\n[developing packages and plugins](https://flutter.dev/developing-packages). \n--\u003e\n\n# log_service\n\nA Dart package for simplify the usage of the official `logging` package.\n\n## Features\n\n- LogController: An interface for controlling the logger instance.\n- LoggerController: A mixin implements the `LogController` interface with a `Logger` instance.\n- LoggerProvider: A mixin provides a `Logger` instance, which name is the `runtimeType`.\n\n## Getting started\n\nAdd `log_service` as a [dependency in your pubspec.yaml file](https://dart.dev/guides/packages).\n\n```\ndependencies:\n  log_service: ^\u003clatest-version\u003e\n```\n\n## Usage\n\n### 1. Log Levels\n\nThe log level is folling the `logging`'s strategy, the `logLevel` is inheirted from the `Logger.root` instance and can only be changed through the `Logger.root` instance by default.\n\nSets `hierarchicalLoggingEnabled = true` to enable hierarchical logging, then use the `logLevel` of the `LogController` interface to set log level for a specific logger instance.\n\n### 2. Log Events\n\nListen the `Logger.root.onRecord` stream to get log events.\n\n### 3. Log Methods\n\n- logger.shout();\n- logger.severe();\n- logger.warning();\n- logger.info();\n- logger.config();\n- logger.fine();\n- logger.finer();\n- logger.finest();\n\n## Additional information\n\nGet more tips form the [`logging`][1] framework.\n\n[1]: https://pub.dev/packages/logging","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanshouwang%2Flog_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanshouwang%2Flog_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanshouwang%2Flog_service/lists"}