{"id":22140796,"url":"https://github.com/xorz57/logger","last_synced_at":"2025-03-24T11:18:32.628Z","repository":{"id":152339164,"uuid":"619950771","full_name":"xorz57/Logger","owner":"xorz57","description":"Logger written in C++11","archived":false,"fork":false,"pushed_at":"2024-03-17T09:06:31.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-18T01:35:39.418Z","etag":null,"topics":["cpp","cpp-library","cpp11","cpp11-library","header-only","header-only-library","logger","logging","logging-library"],"latest_commit_sha":null,"homepage":"https://xorz57.github.io/Logger","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/xorz57.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"xorz57","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"custom":null}},"created_at":"2023-03-27T18:28:47.000Z","updated_at":"2024-04-23T12:43:46.424Z","dependencies_parsed_at":"2023-11-18T00:52:27.067Z","dependency_job_id":"4d5c3b94-3319-44b6-8c4b-fdaf2054736d","html_url":"https://github.com/xorz57/Logger","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/xorz57%2FLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xorz57%2FLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xorz57%2FLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xorz57%2FLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xorz57","download_url":"https://codeload.github.com/xorz57/Logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245258214,"owners_count":20585977,"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","cpp-library","cpp11","cpp11-library","header-only","header-only-library","logger","logging","logging-library"],"created_at":"2024-12-01T21:07:39.762Z","updated_at":"2025-03-24T11:18:32.599Z","avatar_url":"https://github.com/xorz57.png","language":"C++","funding_links":["https://github.com/sponsors/xorz57"],"categories":[],"sub_categories":[],"readme":"# Logger\n\n[![Build](https://github.com/xorz57/Logger/actions/workflows/Build.yml/badge.svg)](https://github.com/xorz57/Logger/actions/workflows/Build.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xorz57_Logger\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=xorz57_Logger)\n\n## Example\n\n```c++\n#include \"Logger/Logger.hpp\"\n\nint main() {\n    Logger::SetLevel(Logger::Level::Trace);\n    Logger::EnableFileOutput();\n    Logger::SetFileOutput(\"Example.log\");\n    Logger::Trace(\"trace\");\n    Logger::Debug(\"debug\");\n    Logger::Info(\"info\");\n    Logger::Warn(\"warn\");\n    Logger::Error(\"error\");\n    Logger::Critical(\"critical\");\n    return 0;\n}\n```\n\n## Output\n\n```console\n[2023-03-22 11:17:11] [trace] trace\n[2023-03-22 11:17:11] [debug] debug\n[2023-03-22 11:17:11] [info] info\n[2023-03-22 11:17:11] [warn] warn\n[2023-03-22 11:17:11] [error] error\n[2023-03-22 11:17:11] [critical] critical\n```\n\n## How to Build\n\n#### Linux \u0026 macOS\n\n```bash\ngit clone https://github.com/microsoft/vcpkg.git ~/vcpkg\n~/vcpkg/bootstrap-vcpkg.sh\n\ngit clone https://github.com/xorz57/Logger.git\ncd Logger\ncmake -B build -DCMAKE_BUILD_TYPE=Release -S . -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake\ncmake --build build --config Release\nctest --build-config Release\n```\n\n#### Windows\n\n```powershell\ngit clone https://github.com/microsoft/vcpkg.git C:/vcpkg\nC:/vcpkg/bootstrap-vcpkg.bat\nC:/vcpkg/vcpkg.exe integrate install\n\ngit clone https://github.com/xorz57/Logger.git\ncd Logger\ncmake -B build -DCMAKE_BUILD_TYPE=Release -S . -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake\ncmake --build build --config Release\nctest --build-config Release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxorz57%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxorz57%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxorz57%2Flogger/lists"}