{"id":21924834,"url":"https://github.com/suconbu/logu","last_synced_at":"2025-07-04T23:04:00.788Z","repository":{"id":42399037,"uuid":"455890715","full_name":"suconbu/logu","owner":"suconbu","description":"Single header logging utility for C++","archived":false,"fork":false,"pushed_at":"2022-12-23T15:03:27.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-27T11:13:50.694Z","etag":null,"topics":["cpp","cpp11","header-only","logging","single-header"],"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/suconbu.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}},"created_at":"2022-02-05T14:23:33.000Z","updated_at":"2022-12-04T05:13:15.000Z","dependencies_parsed_at":"2023-01-30T18:46:00.277Z","dependency_job_id":null,"html_url":"https://github.com/suconbu/logu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Flogu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Flogu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Flogu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconbu%2Flogu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suconbu","download_url":"https://codeload.github.com/suconbu/logu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244947616,"owners_count":20536652,"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":["cpp","cpp11","header-only","logging","single-header"],"created_at":"2024-11-28T21:16:06.744Z","updated_at":"2025-03-22T11:24:24.392Z","avatar_url":"https://github.com/suconbu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logu\r\n\r\nThe single header logging utility for C++.\r\n\r\nExample:\r\n\r\n```cpp\r\n#include \"logu/logu.h\"\r\n\r\nint main()\r\n{\r\n    // Stream style\r\n\r\n    LOGU_DEBUG \u003c\u003c \"debug message\";\r\n    LOGU_INFO \u003c\u003c \"info message\";\r\n    LOGU_WARN \u003c\u003c \"warning message\";\r\n    LOGU_ERROR \u003c\u003c \"error message\";\r\n    LOGU \u003c\u003c \"message with no severity specified\";\r\n\r\n    // Print variable name and value\r\n\r\n    int32_t age = 3;\r\n    std::string name = \"taro\";\r\n    LOGU_DEBUG \u003c\u003c LOGU_VARS(name, age);\r\n\r\n    return 0;\r\n}\r\n```\r\n\r\nResult:\r\n\r\n```\r\n2022-04-04 00:10:23.000 | DEBUG | 6793 | example.cpp@7 | debug message\r\n2022-04-04 00:10:23.000 | INFO  | 6793 | example.cpp@8 | info message\r\n2022-04-04 00:10:23.000 | WARN  | 6793 | example.cpp@9 | warning message\r\n2022-04-04 00:10:23.000 | ERROR | 6793 | example.cpp@10 | error message\r\n2022-04-04 00:10:23.000 | ----- | 6793 | example.cpp@11 | message with no severity specified\r\n2022-04-04 00:10:23.000 | DEBUG | 6793 | example.cpp@17 | (name, age) -\u003e (taro, 3)\r\n```\r\n\r\nLog format (default):\r\n```\r\n{date-time} | {severity} | {thiread-id} | {file-name}@{line-no} | {message}\r\n```\r\n\r\nPlease see [example.cpp](/example/example.cpp) for example.\r\n\r\n# Setup\r\n\r\n1. Place `logu/logu.hpp` in include path of your project.\r\n2. Add `#include \"logu/logu.hpp\"` into your source code.\r\n\r\n# Lisence\r\n\r\nMIT License.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuconbu%2Flogu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuconbu%2Flogu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuconbu%2Flogu/lists"}