{"id":28517076,"url":"https://github.com/soernt/logsinks","last_synced_at":"2026-04-15T11:38:08.943Z","repository":{"id":56834251,"uuid":"155163986","full_name":"soernt/logsinks","owner":"soernt","description":"Targets for the flutter logging package.","archived":false,"fork":false,"pushed_at":"2019-10-17T06:19:29.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T08:51:42.788Z","etag":null,"topics":["flutter","logging"],"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/soernt.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}},"created_at":"2018-10-29T06:40:37.000Z","updated_at":"2025-02-19T06:28:17.000Z","dependencies_parsed_at":"2022-09-09T18:00:12.302Z","dependency_job_id":null,"html_url":"https://github.com/soernt/logsinks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soernt/logsinks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soernt%2Flogsinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soernt%2Flogsinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soernt%2Flogsinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soernt%2Flogsinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soernt","download_url":"https://codeload.github.com/soernt/logsinks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soernt%2Flogsinks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31840098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T11:29:19.690Z","status":"ssl_error","status_checked_at":"2026-04-15T11:29:19.171Z","response_time":63,"last_error":"SSL_read: 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":["flutter","logging"],"created_at":"2025-06-09T04:36:19.075Z","updated_at":"2026-04-15T11:38:08.925Z","avatar_url":"https://github.com/soernt.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logsinks\n\n[![pub package](https://img.shields.io/pub/v/logsinks.svg)](https://pub.dartlang.org/packages/logsinks)\n\nProvides output targets (sinks) for log messages create by the dart [logging](https://pub.dartlang.org/packages/logging) package.\n\nCurrently supported sinks:\n\n* ConsoleLogSink: Writes the logger messages to the console. Different log levels are printed in different colors.\n  \n\n## Getting Started\n\nAdd `logsinks` and `logging` to your `pubspec.yaml` dependencies:\n```yaml\n...\ndependencies:\n  flutter:\n    sdk: flutter\n\n  logsinks: \u003ccurrent version\u003e\n  logging: \u003ccurrent version\u003e\n...\n```\n\n\n## Usage\n```dart\n// Import the packages.\nimport 'package:logging/logging.dart';\nimport 'package:logsinks/log_sinks.dart';\n\nvoid main() {\n  // Configure the logger\n  Logger.root.level = Level.INFO;\n\n  // Configure log sink to output the logger messages to the console.\n  final messageSink = ConsoleLogSink();\n  messageSink.attachToLogger(Logger.root);\n\n  // Create a named logger ...\n  final logger = Logger(\"myLogger\");\n  // and print \"Hello World\" at Level.INFO in to the console.\n  logger.log(Level.INFO, \"Hello World\");\n  // same as:\n  logger.info(\"Hello World\");\n\n  // When you are done, dispose the sink.\n  messageSink.dispose();\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoernt%2Flogsinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoernt%2Flogsinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoernt%2Flogsinks/lists"}