{"id":24435964,"url":"https://github.com/ghost91-/vibe-json-log","last_synced_at":"2026-05-12T16:07:59.983Z","repository":{"id":137281856,"uuid":"192437160","full_name":"ghost91-/vibe-json-log","owner":"ghost91-","description":"A JSON based logger for vibe-core.","archived":false,"fork":false,"pushed_at":"2019-06-18T01:00:41.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T17:41:07.951Z","etag":null,"topics":["json","logger","logging","vibe-d"],"latest_commit_sha":null,"homepage":null,"language":"D","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/ghost91-.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-18T00:30:26.000Z","updated_at":"2019-06-18T01:06:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"27451496-c94d-4d3b-9e5a-29632b3474d9","html_url":"https://github.com/ghost91-/vibe-json-log","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghost91-%2Fvibe-json-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghost91-%2Fvibe-json-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghost91-%2Fvibe-json-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghost91-%2Fvibe-json-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghost91-","download_url":"https://codeload.github.com/ghost91-/vibe-json-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243489829,"owners_count":20299001,"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":["json","logger","logging","vibe-d"],"created_at":"2025-01-20T17:35:47.890Z","updated_at":"2025-12-29T17:02:52.344Z","avatar_url":"https://github.com/ghost91-.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vibe-json-log\n\nA JSON based logger for [vibe-core](https://github.com/vibe-d/vibe-core).\n\n## Usage\n\nTo use the logger in your [vibe-core](https://github.com/vibe-d/vibe-core) based\nproject, simply register it as a logger:\n\n```D\nimport vibe.core.log : registerLogger;\nimport vibe_json_log.log : JSONLogger;\n\nregisterLogger(cast(shared) new JSONLogger());\n```\n\nThe no argument constructor creates a `JSONLogger` that logs to `stdout` and\n`stderr` depending on the loglevel. You can log to specific files using the\nother overloads:\n\n```D\nimport std.stdio : File;\nimport vibe_json_log.log : JSONLogger;\n\nnew JSONLogger(File(\"path/to/infoFile.log\", \"ab\"), File(\"path/to/errorFile.log\", \"ab\"));\n\nnew JSONLogger(\"path/to/logFile.log\");\n\n```\n\n## Format\n\nThe format of the log messages is described in\n[log-message.schema.json](log-message.schema.json). Here is an example of how a\nlog message could look like:\n\n```json\n{\n    \"timestamp\": \"2019-06-17T23:47:42.6605845Z\",\n    \"threadName\": \"main\",\n    \"threadID\": \"A6A7AF69\",\n    \"taskID\": \"Aud+-fin\",\n    \"level\": \"TRACE\",\n    \"file\": \"../../.dub/packages/vibe-core-1.6.2/vibe-core/source/vibe/core/sync.d\",\n    \"line\": 1047,\n    \"message\": \"emit shared done\"\n}\n```\n\n## Acknowledgement\n\nThis project is heavily based on the `FileLoger` which is distributed as part of\n[vibe-core](https://github.com/vibe-d/vibe-core). You can find the corresponding\nlicense [here](https://github.com/vibe-d/vibe-core/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghost91-%2Fvibe-json-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghost91-%2Fvibe-json-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghost91-%2Fvibe-json-log/lists"}