{"id":32275111,"url":"https://github.com/knowbee/swift_log","last_synced_at":"2026-02-23T14:33:46.521Z","repository":{"id":320280132,"uuid":"657545672","full_name":"knowbee/swift_log","owner":"knowbee","description":"Streamline Your Logging Experience and Seamlessly Integrate with Any Backend System","archived":false,"fork":false,"pushed_at":"2023-07-05T23:12:37.000Z","size":27,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T23:45:15.587Z","etag":null,"topics":["api","api-client","flutter","logger","logging"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/swift_log","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/knowbee.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-23T09:50:33.000Z","updated_at":"2023-07-18T09:28:20.000Z","dependencies_parsed_at":"2025-10-22T23:45:17.508Z","dependency_job_id":"a45c6393-77c9-4685-ad11-c67079afd2e4","html_url":"https://github.com/knowbee/swift_log","commit_stats":null,"previous_names":["knowbee/swift_log"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/knowbee/swift_log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Fswift_log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Fswift_log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Fswift_log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Fswift_log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowbee","download_url":"https://codeload.github.com/knowbee/swift_log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Fswift_log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29745629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"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":["api","api-client","flutter","logger","logging"],"created_at":"2025-10-22T23:44:13.072Z","updated_at":"2026-02-23T14:33:46.516Z","avatar_url":"https://github.com/knowbee.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift_log\n\nA comprehensive logging solution designed specifically for flutter apps.\n\n## Description\n\nThe `swift_log` package is a logging solution developed to facilitate comprehensive logging functionalities in flutter applications. It provides the ability to capture and upload logs to a remote server for analysis and debugging purposes.\n\n\n## Features\n\n- Capturing exceptions with customizable tags, subtags, and log messages\n- Capturing events with event names, log messages, and log levels\n- Saving events to device storage (They are cleared out as soon as they get pushed to your logs API)\n\n## Getting Started\n\nTo get started with the `swift_log` package, follow these steps:\n\n1. Add the `swift_log` dependency to your project's `pubspec.yaml` file:\n\n   ```yaml\n   dependencies:\n     swift_log:\n   ```\n\n2. Import the package and initialize the logger in your code:\n\n```dart\nimport 'package:swift_log/swift_log.dart';\n\nvoid main() async {\n\n  await SwiftLog.init(\n    (options) {\n      options.apiPrefix = 'https://your-custom-log-server.com';\n      options.token = 'yourApiToken';\n    },\n    appRunner: () async {\n      return runApp(\n        const App(),\n      );\n    },\n  );\n  // capture and upload logs, with associated events\n\n  SwiftLog.captureException(\n        logMessage: \"Exception occurred\",\n        level: LogLevel.error,\n        exception: e as Exception,\n        stackTrace: stackTrace,\n    );\n\n  /// track events\n  SwiftLog.captureEvent(\n    eventName: \"Fetching clients\",\n    logMessage: \"Fetching clients\",\n    level: LogLevel.info,\n  );\n}\n```\n\nFor more details on usage and examples, refer to the example directory.\n\n### Contributing\n\nContributions to the `swift_log` package are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowbee%2Fswift_log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowbee%2Fswift_log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowbee%2Fswift_log/lists"}