{"id":19598311,"url":"https://github.com/dotupnet/dotup_flutter_logger_sqflite","last_synced_at":"2025-08-20T03:34:50.770Z","repository":{"id":61973145,"uuid":"405881219","full_name":"dotupNET/dotup_flutter_logger_sqflite","owner":"dotupNET","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-06T09:53:09.000Z","size":200,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-28T23:04:50.344Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotupNET.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://www.paypal.com/paypalme/dotup"]}},"created_at":"2021-09-13T07:49:52.000Z","updated_at":"2024-04-16T05:28:07.000Z","dependencies_parsed_at":"2025-07-28T23:04:52.973Z","dependency_job_id":"cadd0942-1713-4792-b0e0-ca4f2be1501f","html_url":"https://github.com/dotupNET/dotup_flutter_logger_sqflite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dotupNET/dotup_flutter_logger_sqflite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_flutter_logger_sqflite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_flutter_logger_sqflite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_flutter_logger_sqflite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_flutter_logger_sqflite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotupNET","download_url":"https://codeload.github.com/dotupNET/dotup_flutter_logger_sqflite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2Fdotup_flutter_logger_sqflite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271259233,"owners_count":24728248,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-11T09:05:45.963Z","updated_at":"2025-08-20T03:34:50.748Z","avatar_url":"https://github.com/dotupNET.png","language":"Dart","funding_links":["https://www.paypal.com/paypalme/dotup"],"categories":[],"sub_categories":[],"readme":"# dotup_flutter_logger_sqflite\n\n## Take a look at [dotup.de](https://dotup.de) or on [pub.dev](https://pub.dev/packages?q=dotup)\n\n## Example\n\n```dart\nFuture\u003cvoid\u003e example() async {\n\n  var dir = await getApplicationDocumentsDirectory();\n  final dbFolder = dir.path;\n\n  if (!await Directory(dbFolder).exists()) {\n    await Directory(dbFolder).create(recursive: true);\n  }\n\n  final databaseFile = '$dbFolder/logging.db';\n\n  // Initialize log writer\n  final sqfLiteLogWriter = SqfLiteLogWriter(LogLevel.All);\n  await sqfLiteLogWriter.initialize(databaseFile);\n  // Add to logger manager\n  LoggerManager.addLogWriter(sqfLiteLogWriter);\n\n  runApp(MyApp());\n\n\n  // Use it everywhere\n  final logger = Logger('Nice');\n  logger.warn('Oh');\n  logger.info('Ah');\n\n  // Get all entries from database\n  final repo = sqfLiteLogWriter.repository;\n  final all = await repo.readAll();\n  for (var item in all) {\n    print(item.message);\n  }\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotupnet%2Fdotup_flutter_logger_sqflite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotupnet%2Fdotup_flutter_logger_sqflite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotupnet%2Fdotup_flutter_logger_sqflite/lists"}