{"id":22726449,"url":"https://github.com/mono0926/simple_logger","last_synced_at":"2026-04-08T14:02:09.960Z","repository":{"id":45602513,"uuid":"161988815","full_name":"mono0926/simple_logger","owner":"mono0926","description":"Provides super simple APIs for logging. The log also includes caller info by setting includeCallerInfo to true. On Android Studio, jump to caller info by clicking the log.","archived":false,"fork":false,"pushed_at":"2024-10-07T06:43:18.000Z","size":91,"stargazers_count":56,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T06:11:08.282Z","etag":null,"topics":["caller","caller-info","customizable","dart","log-level","logger","logging","simple"],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/simple_logger","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/mono0926.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}},"created_at":"2018-12-16T10:10:51.000Z","updated_at":"2024-10-07T06:43:22.000Z","dependencies_parsed_at":"2025-01-07T02:45:04.237Z","dependency_job_id":"f0226f00-1640-483f-845b-42f222953666","html_url":"https://github.com/mono0926/simple_logger","commit_stats":{"total_commits":71,"total_committers":6,"mean_commits":"11.833333333333334","dds":0.07042253521126762,"last_synced_commit":"7ec9cdd402f7d7282ab4b508bf7cea7a9c2efdde"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono0926%2Fsimple_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono0926%2Fsimple_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono0926%2Fsimple_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono0926%2Fsimple_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mono0926","download_url":"https://codeload.github.com/mono0926/simple_logger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451665,"owners_count":20940944,"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":["caller","caller-info","customizable","dart","log-level","logger","logging","simple"],"created_at":"2024-12-10T16:17:21.706Z","updated_at":"2026-04-08T14:02:04.913Z","avatar_url":"https://github.com/mono0926.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple_logger\n\nProvides super simple APIs for logging. The log also includes caller info by setting includeCallerInfo to true. On Android Studio, jump to caller info by clicking the log.\n\n\n## Usage\n\n```dart\n// Singleton (factory)\nfinal logger = SimpleLogger();\n\n// Printed without called location\nlogger.info('Hello info!');\n// -\u003e 👻 INFO  2018-12-16 21:46:20.092695 [caller info not available] Hello info!\n\n// Printed function which returns object\nlogger.info(() =\u003e 'Hello info!');\n// -\u003e 👻 INFO  2018-12-16 21:46:20.092695 [caller info not available] Hello info!\n\nlogger.setLevel(Level.WARNING);\n\n// Not printed\nlogger.info('Hello info!');\n\n// Printed\nlogger.warning('Hello warning!');\n// -\u003e ⚠️ WARNING  2018-12-16 21:46:20.101114 [caller info not available] Hello warning!\n\nlogger.shout('Hello shout!');\n// -\u003e 😡 SHOUT  2018-12-16 21:46:20.101308 [caller info not available] Hello shout!\n\nlogger.setLevel(\n  Level.INFO,\n  // Includes  caller info, but this is expensive.\n  includeCallerInfo: true,\n);\n\n// Printed with called location\nlogger.info('Hello info!');\n// -\u003e 👻 INFO  2018-12-16 21:50:03.562583 [example/simple_logger_example.dart 29:10 in main] Hello info!\n\n// Customize level prefix\nlogger.levelPrefixes = {};\nlogger.info('Hello info!');\n// -\u003e INFO  2018-12-16 21:50:03.562583 [example/simple_logger_example.dart 29:10 in main] Hello info!\n\nlogger.formatter = (info) =\u003e 'Customized output: (${info.message})';\nlogger.info('Hello info!');\n// -\u003e Customized output: (Hello info!)\n\nlogger.onLogged = (info) =\u003e print('Insert your logic with $info');\nlogger.info('Hello info!');\n// -\u003e Customized output: (Hello info!)\n// -\u003e Insert your logic with Instance of 'LogInfo'\n```\n\n## Technical Articles\n\n- [Dartのログ出力に呼び出し元の情報を含めてクリックで飛べるようにする – Flutter 🇯🇵 – Medium](https://medium.com/flutter-jp/logger-ec25d8dd179a)\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\n\n[tracker]: https://github.com/mono0926/simple_logger/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmono0926%2Fsimple_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmono0926%2Fsimple_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmono0926%2Fsimple_logger/lists"}