{"id":32301778,"url":"https://github.com/creatint/flutter_simple_log","last_synced_at":"2026-02-24T14:36:22.635Z","repository":{"id":56839302,"uuid":"281651187","full_name":"creatint/flutter_simple_log","owner":"creatint","description":"A simple way to upload logs to remote server.","archived":false,"fork":false,"pushed_at":"2020-08-12T01:13:28.000Z","size":49,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T05:47:25.948Z","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/creatint.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-07-22T10:49:00.000Z","updated_at":"2022-08-24T06:32:31.000Z","dependencies_parsed_at":"2022-08-28T23:20:17.480Z","dependency_job_id":null,"html_url":"https://github.com/creatint/flutter_simple_log","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/creatint/flutter_simple_log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Fflutter_simple_log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Fflutter_simple_log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Fflutter_simple_log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Fflutter_simple_log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creatint","download_url":"https://codeload.github.com/creatint/flutter_simple_log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Fflutter_simple_log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29785581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"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":[],"created_at":"2025-10-23T05:44:53.955Z","updated_at":"2026-02-24T14:36:22.630Z","avatar_url":"https://github.com/creatint.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"Language: [English](README.md) | [中文](README_zh-CN.md)\n\n# simple_log\n![Pub Version](https://img.shields.io/pub/v/simple_log?style=flat-square)\n![Platform](https://img.shields.io/badge/platform-flutter%7Cflutter%20web%7Cdart%20vm-brightgreen)\n\nThe simplest way to upload logs to remote server, support all platforms.\n\nBy default, logs will be uploaded to [avenge.app](https://avenge.app), which is a simple Log-Management-System, welcome to try ^_^\n\nYou can set your own server to receive logs.\n\n## Getting Started\n\n1. Register for free\n\n   [https://avenge.app/register](https://avenge.app/register)\n2. Create app\n\n   [https://avenge.app/developer/resources/app-apps/new](https://avenge.app/developer/resources/app-apps/new)\n\n3. Install\n   ```yaml\n   dependencies:\n       simple_log: ^1.2.3\n   ```\n4. Usage\n   ```dart\n   import 'package:simple_log/simple_log.dart';\n\n   void main(){\n     SimpleLog logger = SimpleLog(appId: yourAppId, appKey: 'yourAppKey');\n     FlutterError.onError = (FlutterErrorDetails details) {\n       logger.e(details);\n     };\n     runApp(MyApp());\n   }\n    ```\n5. Other usages\n\n   [simple_logger_example.dart](example/simple_logger_example.dart)\n    ```dart\n   SimpleLog logger = SimpleLog(appId: 123, appKey: 'yourAppKey');\n   SimpleLog logger2 = SimpleLog(key: 'key2',appId: 456, appKey: 'yourAppKey2');\n   \n   // default key is 'default'\n   assert(logger == SimpleLog(key: 'default'));\n   \n   // debug level\n   logger.d('hello world');\n   \n   // info level\n   logger.i('hello world');\n   \n   // warning level\n   logger.w({'a':1,'b':'c'}); \n   \n   // error level log will be printed on the local terminal\n   logger2.setPrintLevels([Level.Error]);\n   \n   // error level\n   // this log will be printed on the local terminal\n   logger2.e(logger); \n   \n   // cancel upload logs\n   logger2.setUploadLevels(null);\n   \n   // fatal level\n   // this log will be printed on the local terminal but will not be uploaded\n   logger2.f(['p1', 'p2']); \n    ```\n\n## Build receive server\n\n  \n   The default value of [SimpleLog.apiPrefix] is 'https://avenge.app/api', you can set your own server to receive logs.\n   ```dart\n   var logger = SimpleLog(apiPrefix: 'your own server');\n   ```\n  \n   When it reports a log, it will post a json to remote server:\n   ```json\n   {\n     \"app_id\": 123,\n     \"app_key\": \"appKey123\",\n     \"user\": \"user123\",\n     \"flag\": \"flag123\",\n     \"level\": 2,\n     \"data\": {}\n   }\n   ```\n   *data* is the content of the log, it can be string or json.\n  \n   Then, the remote server will give back a json:\n   ```json\n   {\n     \"code\": 0,\n     \"message\": \"success\"\n   }\n   ```\n   If *code* is 0, it means success.\n  \n   If something went wrong, it would be:\n   ```json\n   {\n     \"code\": -1,\n     \"message\": \"something wrong ...\"\n   }\n   ```\n\n## 全部项目\n| 插件                                                     | 状态                                                       | 描述                                                  |\n| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |\n| [simple_log](https://github.com/creatint/flutter_simple_log) | ![Pub Version](https://img.shields.io/pub/v/simple_log?style=flat-square) | The simplest way to upload logs to remote server, support all platforms |\n| [simple_update](https://github.com/creatint/flutter_simple_update) | ![Pub Version](https://img.shields.io/pub/v/simple_update?style=flat-square) | The simplest way to update your app, support all platforms |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreatint%2Fflutter_simple_log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreatint%2Fflutter_simple_log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreatint%2Fflutter_simple_log/lists"}