{"id":20340895,"url":"https://github.com/leancodepl/logging_bugfender","last_synced_at":"2026-01-26T07:32:01.946Z","repository":{"id":45235136,"uuid":"321973142","full_name":"leancodepl/logging_bugfender","owner":"leancodepl","description":"A library helping integrate Bugfender with the logging package.","archived":false,"fork":false,"pushed_at":"2026-01-13T09:11:22.000Z","size":70,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-01-13T10:58:05.501Z","etag":null,"topics":["bugfender","flutter","logging"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/logging_bugfender","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/leancodepl.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":"2020-12-16T12:18:21.000Z","updated_at":"2026-01-13T09:10:13.000Z","dependencies_parsed_at":"2024-11-14T21:28:56.539Z","dependency_job_id":"25923e59-b37d-4375-bbb0-f69960cf18b8","html_url":"https://github.com/leancodepl/logging_bugfender","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/leancodepl/logging_bugfender","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Flogging_bugfender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Flogging_bugfender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Flogging_bugfender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Flogging_bugfender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancodepl","download_url":"https://codeload.github.com/leancodepl/logging_bugfender/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Flogging_bugfender/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28769851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T06:37:25.426Z","status":"ssl_error","status_checked_at":"2026-01-26T06:37:23.039Z","response_time":59,"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":["bugfender","flutter","logging"],"created_at":"2024-11-14T21:24:33.212Z","updated_at":"2026-01-26T07:32:01.931Z","avatar_url":"https://github.com/leancodepl.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logging_bugfender\n\n[![logging_bugfender pub.dev badge][pub-badge]][pub-badge-link]\n[![][build-badge]][build-badge-link]\n\nA library helping integrate Bugfender with the [logging] package.\n\n## Usage\n\n### Setup\n\n```dart\nfinal loggingListener = LoggingBugfenderListener('my-very-secret-app-key');\n\nvoid main() {\n    setupLogger(true);\n    // ...\n    runApp(MyApp());\n}\n\nvoid setupLogger(bool debugMode) {\n  if (debugMode) {\n    // During debugging, you'll usually want to log everything\n    Logger.root.level = Level.ALL;\n    LoggingBugfenderListener(\n      config.bugfenderKey,\n      consolePrintStrategy: const PlainTextPrintStrategy(),\n    ).listen(Logger.root);\n  } else {\n    // On production, you probably want to log only INFO and above\n    Logger.root.level = Level.INFO;\n    LoggingBugfenderListener(config.bugfenderKey).listen(Logger.root);\n  }\n}\n```\n\n### Custom data\n\nYou can also add and remove custom data.\n\n```dart\nconst logUsernameKey = 'username';\n\n// After the user signs in\nloggingListener.setCustomData(logUsernameKey, '\u003csome username\u003e');\n\n// After the user signs out\nloggingListener.removeCustomData(logUsernameKey);\n```\n\n### In a cubit\n\n```dart\nclass FooBarCubit {\n    final _logger = Logger('FooBarCubit');\n\n    // (...)\n\n    void doSomething() {\n        try {\n            // (...)\n            _logger.info('Successfuly did something');\n        } catch (err, st) {\n            _logger.severe('Failed doing something', err, st);\n        }\n    }\n}\n```\n\n[pub-badge]: https://img.shields.io/pub/v/logging_bugfender\n[pub-badge-link]: https://pub.dev/packages/logging_bugfender\n[build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/logging_bugfender/test.yml?branch=master\n[build-badge-link]: https://github.com/leancodepl/logging_bugfender/actions/workflows/test.yml\n[logging]: https://pub.dev/packages/logging\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Flogging_bugfender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancodepl%2Flogging_bugfender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Flogging_bugfender/lists"}