{"id":15678453,"url":"https://github.com/zxch3n/debug-log","last_synced_at":"2026-03-03T15:33:01.460Z","repository":{"id":63442686,"uuid":"567785071","full_name":"zxch3n/debug-log","owner":"zxch3n","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-05T08:04:00.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T10:29:50.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zxch3n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-11-18T15:15:15.000Z","updated_at":"2023-03-04T09:17:01.000Z","dependencies_parsed_at":"2024-10-23T13:56:23.035Z","dependency_job_id":null,"html_url":"https://github.com/zxch3n/debug-log","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"0c428d164f2cca83ac9292aed0dcd8fa52887a3e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zxch3n/debug-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxch3n%2Fdebug-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxch3n%2Fdebug-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxch3n%2Fdebug-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxch3n%2Fdebug-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zxch3n","download_url":"https://codeload.github.com/zxch3n/debug-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxch3n%2Fdebug-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30050460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T15:26:47.567Z","status":"ssl_error","status_checked_at":"2026-03-03T15:26:17.132Z","response_time":61,"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":"2024-10-03T16:21:33.493Z","updated_at":"2026-03-03T15:33:01.432Z","avatar_url":"https://github.com/zxch3n.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\u003ccode\u003edebug-log\u003c/code\u003e\u003c/h2\u003e\n  \u003ch3\u003e\u003ca href=\"https://docs.rs/debug-log\"\u003eDocumentation\u003c/a\u003e\u003c/h3\u003e\n  \u003cp\u003e\u003c/p\u003e\n\u003c/div\u003e\n\nSimple log utils for debugging in Rust.\n\n- 🦀 Enabled only in debug mode when `DEBUG` environment variable is set. You\n  can change the `DEBUG` value in runtime as well by `set_debug`.\n- 🔊 Only log in files whose paths match `DEBUG=\"filename\"`. Match all by using\n  `DEBUG=\"\"`, or `DEBUG=\"*\"`\n- 📦 Group output with `debug_group`\n- 📤 WASM support. It will use the console API\n\nThe output log is super easy to read on VS Code with sticky scroll enabled.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/18425020/202741062-0467b470-32ca-4a23-b280-73fa7d4c7868.gif\" width=\"600\"/\u003e\n\n# Example\n\n```rust\nuse debug_log::{debug_dbg, debug_log, group, group_end};\nfn main() {\n    group!(\"A Group\");\n    {\n        group!(\"Sub A Group\");\n        let arr: Vec\u003c_\u003e = (0..3).collect();\n        debug_dbg!(\u0026arr);\n        {\n            group!(\"Sub Sub A Group\");\n            debug_dbg!(\u0026arr);\n            group_end!();\n        }\n        debug_log!(\"Hi\");\n        debug_dbg!(\u0026arr);\n        group_end!();\n    }\n\n    {\n        group!(\"B Group\");\n        debug_log!(\"END\");\n        group_end!();\n    }\n    group_end!();\n}\n```\n\nRun with `DEBUG=* cargo run`\n\nOutput\n\n```log\nA Group {\n    Sub A Group {\n        [src/lib.rs:144] \u0026arr = [\n            0,\n            1,\n            2,\n        ]\n        Sub Sub A Group {\n            [src/lib.rs:147] \u0026arr = [\n                0,\n                1,\n                2,\n            ]\n        }\n        [src/lib.rs:150] Hi\n        [src/lib.rs:151] \u0026arr = [\n            0,\n            1,\n            2,\n        ]\n    }\n    B Group {\n        [src/lib.rs:157] END\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxch3n%2Fdebug-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzxch3n%2Fdebug-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxch3n%2Fdebug-log/lists"}