{"id":21056269,"url":"https://github.com/zarox28/logger-cpp","last_synced_at":"2025-05-15T23:33:09.355Z","repository":{"id":220666923,"uuid":"752242572","full_name":"Zarox28/Logger-CPP","owner":"Zarox28","description":"Simple logging library in C++","archived":true,"fork":false,"pushed_at":"2024-02-05T23:46:35.000Z","size":99,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T00:15:34.632Z","etag":null,"topics":["cpp","logging"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zarox28.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-02-03T13:07:21.000Z","updated_at":"2024-05-02T14:53:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9090b5d-9b53-4691-b8e0-9d82976f61bd","html_url":"https://github.com/Zarox28/Logger-CPP","commit_stats":null,"previous_names":["zarox28/logger","zarox28/logger-cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zarox28%2FLogger-CPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zarox28%2FLogger-CPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zarox28%2FLogger-CPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zarox28%2FLogger-CPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zarox28","download_url":"https://codeload.github.com/Zarox28/Logger-CPP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442429,"owners_count":22071864,"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","logging"],"created_at":"2024-11-19T16:49:40.452Z","updated_at":"2025-05-15T23:33:09.334Z","avatar_url":"https://github.com/Zarox28.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logger\n\n![C++](https://img.shields.io/badge/c++-%2300599C.svg?style=for-the-badge\u0026logo=c%2B%2B\u0026logoColor=white)\n![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg?style=for-the-badge)\n\n\u003e Version: **1.2.0**\n\n---\n\n## Table of Contents\n\n- [About](#about)\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Init](#init)\n  - [Reset](#reset)\n  - [Debug](#debug)\n  - [Info](#info)\n  - [Success](#success)\n  - [Warning](#warning)\n  - [Error](#error)\n  - [Fatal](#fatal)\n- [Changelog](#changelog)\n- [Contributing](#contributing)\n- [License](#license)\n- [Authors](#authors)\n\n## About\n\nThis is a simple `C++` logger that can be used to log messages to the console or to a file.\n\n## Features\n\n- Debug, Info, Warning, Error and Fatal log levels\n\n## Installation\n\n1. Add the `Logger` submodule to your project\n\n```bash\ngit submodule add https://github.com/Zarox28/Logger.git libs/Logger\n```\n\n2. Initialize the submodule \u0026 update it\n\n```bash\ngit submodule update --init --recursive\n```\n\n3. Include the `Logger` header file in your project\n\n```cpp\n#include \"libs/Logger/Logger.h\"\n```\n\n\u003e **Note:** The `Logger` submodule is located in the `libs` directory of your project.\n\n\u003e **Tip:** You can also add `using namespace Logger;` to your project to avoid having to type `Logger::` before every log level.\n\n## Usage\n\n### Init\n\n```cpp\nLogger::init();\n```\n\n### Reset\n\n```cpp\nLogger::reset();\n```\n\n### Debug\n\n```cpp\nLogger::debug(\"This is a debug message\");\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003ePreview\u003c/summary\u003e\n\n  ![](assets/debug.webp)\n\u003c/details\u003e\n\n### Info\n\n```cpp\nLogger::info(\"This is an info message\");\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003ePreview\u003c/summary\u003e\n\n  ![](assets/info.webp)\n\u003c/details\u003e\n\n### Success\n\n```cpp\nLogger::success(\"This is a success message\");\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003ePreview\u003c/summary\u003e\n\n  ![](assets/success.webp)\n\u003c/details\u003e\n\n### Warn\n\n```cpp\nLogger::warn(\"This is a warning message\");\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003ePreview\u003c/summary\u003e\n\n  ![](assets/warn.webp)\n\u003c/details\u003e\n\n### Error\n\n```cpp\nLogger::error(\"This is an error message\");\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003ePreview\u003c/summary\u003e\n\n  ![](assets/error.webp)\n\u003c/details\u003e\n\n### Fatal\n\n```cpp\nLogger::fatal(\"This is a fatal message\");\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003ePreview\u003c/summary\u003e\n\n  ![](assets/fatal.webp)\n\n  \u003e **Note:** Fatal log message blink in red to catch the user's attention.\n\u003c/details\u003e\n\n## Changelog\n\nsee [CHANGELOG.md](CHANGELOG.md) for latest changes.\n\n## Contributing\n\nContributing is disabled for this repository.\n\n## License\n\nThis project is licensed under the AGPL v3 License - see the [LICENSE](LICENSE.md) file for details.\n\n## Authors\n\n- **[@Zarox28](https://github.com/Zarox28)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzarox28%2Flogger-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzarox28%2Flogger-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzarox28%2Flogger-cpp/lists"}