{"id":21418654,"url":"https://github.com/kdesp73/logging.h","last_synced_at":"2025-03-16T19:25:18.276Z","repository":{"id":227528497,"uuid":"771682838","full_name":"KDesp73/logging.h","owner":"KDesp73","description":"A simple header only library of logging methods to add to your project","archived":false,"fork":false,"pushed_at":"2024-03-13T19:06:39.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T06:09:16.386Z","etag":null,"topics":["c","header-only","logging"],"latest_commit_sha":null,"homepage":"","language":"C","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/KDesp73.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}},"created_at":"2024-03-13T18:50:07.000Z","updated_at":"2024-03-13T19:16:46.000Z","dependencies_parsed_at":"2024-03-13T20:24:36.857Z","dependency_job_id":null,"html_url":"https://github.com/KDesp73/logging.h","commit_stats":null,"previous_names":["kdesp73/logging.h"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDesp73%2Flogging.h","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDesp73%2Flogging.h/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDesp73%2Flogging.h/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDesp73%2Flogging.h/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KDesp73","download_url":"https://codeload.github.com/KDesp73/logging.h/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918645,"owners_count":20368746,"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":["c","header-only","logging"],"created_at":"2024-11-22T19:23:08.902Z","updated_at":"2025-03-16T19:25:18.242Z","avatar_url":"https://github.com/KDesp73.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logging.h\n\nA simple header only library of logging methods to add to your project\n\n## Get the file\n\n```console\nwget https://raw.githubusercontent.com/KDesp73/logging.h/main/logging.h \n```\n\n## Log Status\n\n- `INFO`\n- `WARN`\n- `ERRO`\n- `DEBU` (if `DEBUG` is defined)\n- Any other status using the `LOG` method\n\n## Example\n\n```c\n#include \"logging.h\"\n\nint main(){\n    const char* ip = \"127.0.0.1\";\n    const char* username = \"!user\";\n\n    INFO(\"IP: %s\\n\", ip);\n    WARN(\"Address is local\\n\");\n    ERRO(\"Username \\'%s\\' contains special characters\", username);\n\n    return 0; \n}\n```\n\nOutput:\n```\n[INFO] IP: 127.0.0.1\n[WARN] Address is local\n[ERRO] Username '!user' contains special characters\n```\n\n\n## LICENSE\n\n[MIT](./LICENSE)\n\n## Author\n\n[KDesp73](https://github.com/KDesp73)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdesp73%2Flogging.h","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdesp73%2Flogging.h","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdesp73%2Flogging.h/lists"}