{"id":32307058,"url":"https://github.com/chenenyu/dog","last_synced_at":"2026-02-22T01:38:49.003Z","repository":{"id":61973136,"uuid":"309332190","full_name":"chenenyu/dog","owner":"chenenyu","description":"Simple and pretty log package for Dart, includes Flutter and web.","archived":false,"fork":false,"pushed_at":"2021-10-20T07:14:10.000Z","size":749,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-20T21:47:32.511Z","etag":null,"topics":["console","dart","dart-log","dart-web","dartjs","flutter","flutter-log","log","logger","print","web"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/dog","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenenyu.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":"2020-11-02T10:15:02.000Z","updated_at":"2023-04-14T14:41:54.000Z","dependencies_parsed_at":"2022-10-24T13:30:42.595Z","dependency_job_id":null,"html_url":"https://github.com/chenenyu/dog","commit_stats":null,"previous_names":[],"tags_count":11,"template":null,"template_full_name":null,"purl":"pkg:github/chenenyu/dog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenenyu%2Fdog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenenyu%2Fdog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenenyu%2Fdog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenenyu%2Fdog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenenyu","download_url":"https://codeload.github.com/chenenyu/dog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenenyu%2Fdog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29703227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["console","dart","dart-log","dart-web","dartjs","flutter","flutter-log","log","logger","print","web"],"created_at":"2025-10-23T07:13:31.896Z","updated_at":"2026-02-22T01:38:48.991Z","avatar_url":"https://github.com/chenenyu.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dog\n\n[![Pub Version](https://img.shields.io/pub/v/dog)](https://pub.dev/packages/dog)\n\nSimple and pretty log package for Dart, includes Flutter and web.\n\n## Getting Started\n\n### Install\n\n```yaml\ndependencies:\n  dog: any # replace 'any' with version number.\n```\n\n```dart\nimport 'package:dog/dog.dart';\n```\n\n### Usage\n\n```dart\n// simple log\ndog.v('verbose');\ndog.d('debug');\ndog.i('info');\ndog.w('warning');\ndog.e('error');\n```\n![](art/1.png)\n\n```dart\n// Map.\ndog.i({\n  'a': 1,\n  'b': {'b1': '2', 'b2': '2'},\n  'c': 3\n});\n// Iterable.\ndog.w([1, 2, 3, 4, 5]);\n// Function.\ndog.d(() =\u003e 'This this a message returned by Function.');\n```\n![](art/2.png)\n\n```dart\n// Exception/StackTrace\ntry {\n  throw Exception('This is an exception.');\n} catch (e, st) {\n  dog.e(e, stackTrace: st);\n}\n```\n![](art/3.png)\n\n```dart\n// tag and title support\ndog.i({'success': true}, tag: 'HTTP', title: 'Response: https://api.example.com/');\n```\n![](art/4.png)\n\nWeb platform support:\n\n![chrome](art/chrome.png)\n\n#### Dog level\n\nSee [Level](lib/src/level.dart).\n```dart\n// disable Dog\ndog.level = Level.OFF;\n```\n\n#### Formatter\n\n[`PrettyFormatter`](lib/src/formatter/pretty_formatter.dart): Convert message to pretty styles.\n\n[`SimpleFormatter`](lib/src/formatter/simple_formatter.dart): Format message without borders.\n\n#### Emitter\n\n[`ConsoleEmitter`](lib/src/emitter/console_formatter.dart): Output message to console.\n\n[`FileEmitter`](lib/src/emitter/file_formatter.dart): Output message to file, it doesn't support web platform.\n\n## Note\n\nIf you are running a flutter app by **AndroidStudio** and the console log is not colorful, then try to enable it manually:  \n```dart\ndog = Dog(handler: Handler(formatter: PrettyFormatter(), emitter: ConsoleEmitter(supportsAnsiColor: true)));\n```\n\n## Thanks\n\n[logger](https://github.com/orhanobut/logger): Logger for android.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenenyu%2Fdog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenenyu%2Fdog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenenyu%2Fdog/lists"}