{"id":22515469,"url":"https://github.com/kylesmith19091/lightweight-cpp-logging","last_synced_at":"2026-05-03T19:32:50.169Z","repository":{"id":124214135,"uuid":"395643503","full_name":"KyleSmith19091/Lightweight-CPP-Logging","owner":"KyleSmith19091","description":"A lightweight cpp rich text logging library","archived":false,"fork":false,"pushed_at":"2021-12-05T12:33:59.000Z","size":2077,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T03:41:28.238Z","etag":null,"topics":["cli","cpp","logging","progress-bar","rich-text","terminal"],"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/KyleSmith19091.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,"publiccode":null,"codemeta":null}},"created_at":"2021-08-13T12:17:18.000Z","updated_at":"2022-01-12T15:24:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"28bcdf6a-2e48-42ef-9ff2-40b5a13b3b5a","html_url":"https://github.com/KyleSmith19091/Lightweight-CPP-Logging","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/KyleSmith19091%2FLightweight-CPP-Logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyleSmith19091%2FLightweight-CPP-Logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyleSmith19091%2FLightweight-CPP-Logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyleSmith19091%2FLightweight-CPP-Logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyleSmith19091","download_url":"https://codeload.github.com/KyleSmith19091/Lightweight-CPP-Logging/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245955427,"owners_count":20699906,"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":["cli","cpp","logging","progress-bar","rich-text","terminal"],"created_at":"2024-12-07T03:32:40.305Z","updated_at":"2026-05-03T19:32:45.150Z","avatar_url":"https://github.com/KyleSmith19091.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e💸 Rich Text Logging \u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch2\u003e👋 Welcome to the future of your terminal *logging* experience\u003c/h2\u003e\n\u003c/div\u003e\n\nLightweight CPP Logging is a **single** header file implementation to provide a rich text logging experience and also a nifty progress bar.\nThis library brings color to what many would say is a dull workspace ***ahem*** the terminal.\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch2\u003e🌱 See for yourself\u003c/h2\u003e\n\u003c/div\u003e\n\n![demo](https://user-images.githubusercontent.com/29174023/129370577-7f82f78c-def4-40cb-bcb8-eaa41a60f074.gif)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch2\u003e🎉 Usage\u003c/h2\u003e\n\u003c/div\u003e\n\nAll functionality is implemented under the log namespace, this namespace has the following classes within it\n\n- Clock\n- ProgressBar\n- Debug\n- Info\n- Warning\n- Error\n- Critical\n\n\u003ch3\u003eProgress Bar\u003c/h3\u003e\n\n→ Method Signature \n```c++\n            static void displayProgressBar(std::ostream \u0026os, unsigned int width,\n                                         const std::string \u0026msg = \"Loading\",\n                                          const bool\u0026 useColor = true,\n                                          const unsigned int \u0026waitAmount = 100,\n                                          const std::string \u0026loadingSymbol = \"-\");\n```\n- Width: Can be seen as either how far the progress bar stretches or the countdown time\n- msg: The message that is displayed before the progress bar\n- useColor: Specifies whether or not ANSI colors should be used to highlight the text\n- waitAmount: This is the time to wait between each increment of the progress bar\n- loadingSymbol: This is the symbol that is used in the progress bar\n\n**Example**\n```c++\nLog::Progressbar::createProgressBar(std::cout);\n```\n\n\u003ch3\u003eRich Logging\u003c/h3\u003e\nLogging can be done using a level system of either\n\n- Debug\n- Info\n- Warning\n- Error\n- Critical\n\n\u003ch4\u003eOutput Format\u003c/h4\u003e\n\n```console\n{time} [LEVEL] {filename} Message\n```\n\n**Example**\n```c++\n// Standard Output\nstd::cout \u003c\u003c DEBUG \u003c\u003c \"Debug Message\\n\";\nstd::cout \u003c\u003c INFO \u003c\u003c \"Info Message\\n\";\n\n// Standard Output alternative syntax\nstd::cout \u003c\u003c Log::Debug() \u003c\u003c \"Debug Message\\n\";\n\n// Example with file output =\u003e Needs to use alternative syntax\noutFile \u003c\u003c Log::Critical() \u003c\u003c \"Critical message into file\\n\";\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylesmith19091%2Flightweight-cpp-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkylesmith19091%2Flightweight-cpp-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylesmith19091%2Flightweight-cpp-logging/lists"}