{"id":19839425,"url":"https://github.com/scientifichackers/super_logging","last_synced_at":"2025-05-01T19:30:20.694Z","repository":{"id":46389845,"uuid":"183090154","full_name":"scientifichackers/super_logging","owner":"scientifichackers","description":"The usual dart logging module with superpowers!","archived":false,"fork":false,"pushed_at":"2021-10-17T18:51:02.000Z","size":47,"stargazers_count":4,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T17:04:39.300Z","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/scientifichackers.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-04-23T20:22:24.000Z","updated_at":"2023-05-30T08:22:13.000Z","dependencies_parsed_at":"2022-08-29T01:51:23.797Z","dependency_job_id":null,"html_url":"https://github.com/scientifichackers/super_logging","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fsuper_logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fsuper_logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fsuper_logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fsuper_logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scientifichackers","download_url":"https://codeload.github.com/scientifichackers/super_logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932513,"owners_count":21667157,"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","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-11-12T12:22:24.056Z","updated_at":"2025-05-01T19:30:20.418Z","avatar_url":"https://github.com/scientifichackers.png","language":"Dart","readme":"# Super Logging\n\n[![Sponsor](https://img.shields.io/badge/Sponsor-jaaga_labs-red.svg?style=for-the-badge)](https://www.jaaga.in/labs)\n\n[![pub package](https://img.shields.io/pub/v/super_logging.svg?style=for-the-badge)](https://pub.dartlang.org/packages/super_logging)\n\nThis package lets you easily log to:\n- stdout\n- disk\n- sentry.io\n\n```dart\nimport 'package:super_logging/super_logging.dart';\nimport 'package:logging/logging.dart';\n\nfinal logger = Logger(\"main\");\n\nmain() async {\n  // just call once, and let it handle the rest!\n  await SuperLogging.main();\n  \n  logger.info(\"hello!\");\n}\n```\n\n(Above example will log to stdout and disk.)\n\n## Logging to sentry.io\n\nJust specify your sentry DSN.\n\n```dart\nSuperLogging.main(LogConfig(\n  sentryDsn: 'https://xxxx@sentry.io/yyyy',\n));\n```\n\n## Log uncaught errors\n\nJust provide the contents of your `main()` function to super logging.\n\n```dart\nvoid main() {\n  SuperLogging.main(LogConfig(\n    body: _main,\n  ));\n}\n\nvoid _main() {\n  runApp(MyApp());\n}\n```\n\n[Read the docs](https://pub.dev/documentation/super_logging/latest/super_logging/super_logging-library.html) to know about more customization options.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Fsuper_logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientifichackers%2Fsuper_logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Fsuper_logging/lists"}