{"id":22962227,"url":"https://github.com/johmaru/jzlog","last_synced_at":"2025-04-02T03:24:20.206Z","repository":{"id":265420344,"uuid":"895662401","full_name":"johmaru/JZlog","owner":"johmaru","description":"No dependent Simple zig logging library","archived":false,"fork":false,"pushed_at":"2024-12-26T07:26:01.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T18:17:47.234Z","etag":null,"topics":["library","logging","zig","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/johmaru.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":"2024-11-28T16:22:49.000Z","updated_at":"2024-12-24T12:31:11.000Z","dependencies_parsed_at":"2024-11-29T10:25:57.141Z","dependency_job_id":"f9ffb4d3-86e8-4a7b-aeb1-e64791ce4ccb","html_url":"https://github.com/johmaru/JZlog","commit_stats":null,"previous_names":["johmaru/jzlog"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johmaru%2FJZlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johmaru%2FJZlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johmaru%2FJZlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johmaru%2FJZlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johmaru","download_url":"https://codeload.github.com/johmaru/JZlog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246748497,"owners_count":20827320,"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":["library","logging","zig","zig-package","ziglang"],"created_at":"2024-12-14T19:16:09.349Z","updated_at":"2025-04-02T03:24:20.192Z","avatar_url":"https://github.com/johmaru.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JZlog\n\nNo dependent Simple zig logging library\n\nlibrary v 0.0.3 on zig version 0.13.0\n\n※Version 0.0.3 linux supported\n\n## how to install\n\n```zig fetch --save https://github.com/johmaru/JZlog/archive/refs/tags/v0.0.3.zip```\n\nedit build.zig\n\n```zig\n    const jzlog_dep = b.dependency(\"JZlog\", .{});\n    const jzlog_module = jzlog_dep.module(\"JZlog\");\n\n    //Under\n    //const exe = b.addExecutable(.{\n      //  .name = \"test_log\",\n      //  .root_source_file = b.path(\"src/main.zig\"),\n      //  .target = target,\n      //  .optimize = optimize,\n    // });\n\n    exe.root_module.addImport(\"JZlog\", jzlog_module);\n```\n\nmain.zig\n\n```zig\nconst jz_log = @import(\"JZlog\");\n```\n\n## how to use\n\n```zig\n    const JZlog = @import(\"JZlog\");\n\n    // all default\n    try JZlog.init(null,.{}); \n\n    // If you want to choose time format (Y-M-D or Y-M-D-H-M-S), you can use LogTime enum types.\n    try logger.init(.y_m_d,.{}); \n\n    // Include hsms\n    try logger.init(.Include_h_s_m_s,{}); \n    \n    // also you can chose any settings your like\n     try logger.init(null,.{ .min_level = logger.LogLevel.Warning }); \n\n\n\n\n    // this is log write function\n    try JZlog.log(\"Hello!\", JZlog.LogLevel.Info); // This library supports various LogLevel types\n\n    // this library have async function\n    try logger.asyncLog(\"async!!\", logger.LogLevel.Info);\n    defer logger.shutdown();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohmaru%2Fjzlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohmaru%2Fjzlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohmaru%2Fjzlog/lists"}