{"id":26100547,"url":"https://github.com/djoezeke/celog","last_synced_at":"2025-03-09T17:39:23.541Z","repository":{"id":281279582,"uuid":"943587344","full_name":"djoezeke/celog","owner":"djoezeke","description":"A Fast , Convenient and Lightweight Header Only C/C++ Logging Library.","archived":false,"fork":false,"pushed_at":"2025-03-08T01:52:02.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T02:24:43.957Z","etag":null,"topics":["asynchronous","c","cpp","cross-platform","header-only","high-performance","logger","logging","logging-library","low-latency"],"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/djoezeke.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":"2025-03-06T00:25:04.000Z","updated_at":"2025-03-08T01:37:26.000Z","dependencies_parsed_at":"2025-03-08T05:15:24.699Z","dependency_job_id":null,"html_url":"https://github.com/djoezeke/celog","commit_stats":null,"previous_names":["djoezeke/celog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djoezeke%2Fcelog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djoezeke%2Fcelog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djoezeke%2Fcelog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djoezeke%2Fcelog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djoezeke","download_url":"https://codeload.github.com/djoezeke/celog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242729460,"owners_count":20175945,"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":["asynchronous","c","cpp","cross-platform","header-only","high-performance","logger","logging","logging-library","low-latency"],"created_at":"2025-03-09T17:39:22.937Z","updated_at":"2025-03-09T17:39:23.530Z","avatar_url":"https://github.com/djoezeke.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Celog 📋\n\nCelog is a lightweight logging library for C/C++ projects.\nIt provides various logging levels and supports colored and styled output for better readability.\n\n## Features ✨\n\n- Multiple log levels:\n  - EMERGENCY 🚨\n  - ALERT ⚠️\n  - CRITICAL ❗\n  - ERROR ❌\n  - WARNING ⚠️\n  - NOTICE 📢\n  - INFO ℹ️\n  - DEBUG 🐛\n- Colored and styled output 🎨\n- File and function information in log messages 📂\n- Configurable log level, color, and style settings ⚙️\n\n## Installation 🛠️\n\nTo use Celog in your project, simply include the `celog.h` header file in your source files.\n\n```cpp\n#include \"celog.h\"\n```\n\n## Usage 📖\n\n### Log Levels\n\nCelog provides the following log levels:\n\n- `celog_emerg`: Emergency messages 🚨\n- `celog_alert`: Alert messages ⚠️\n- `celog_crit`: Critical messages ❗\n- `celog_error`: Error messages ❌\n- `celog_warn`: Warning messages ⚠️\n- `celog_notice`: Notice messages 📢\n- `celog_info`: Informational messages ℹ️\n- `celog_debug`: Debug messages 🐛\n\n### Example\n\n```cpp\n#include \"celog.h\"\n\nint main() {\n    celog_emerg(\"This is an emergency message\");\n    celog_alert(\"This is an alert message\");\n    celog_crit(\"This is a critical message\");\n    celog_error(\"This is an error message\");\n    celog_warn(\"This is a warning message\");\n    celog_notice(\"This is a notice message\");\n    celog_info(\"This is an informational message\");\n    celog_debug(\"This is a debug message\");\n\n    return 0;\n}\n```\n\n## Configuration ⚙️\n\nYou can configure the log level, color, and style settings by defining or uncommenting the following macros in `ceconfig.h`:\n\n- `CELOG_LOG_LEVEL`: Set the log level (default: 7)\n- `CELOG_COLOR`: Enable or disable colored output (default: 1)\n- `CELOG_STYLE`: Enable or disable styled output (default: 1)\n\n### Example Configuration\n\nTo customize the logging behavior, you can modify the `ceconfig.h` file:\n\n```cpp\n// Set the log level to WARNING\n#define CELOG_LOG_LEVEL 4\n\n// Disable file information in log messages\n#define CELOG_NO_FILE_INFO\n\n// Disable function information in log messages\n#define CELOG_NO_FUNC_INFO\n```\n\n### Log Level Controls\n\nCelog allows you to control the log levels by defining the `CELOG_LOG_LEVEL` macro.\nMessages with a log level lower than the defined level will be disabled.\n\n### Log Information Controls\n\nCelog allows you to control the log information by defining:\n\n- `CELOG_NO_FILE_INFO`: Disables logging of file information (file name and line number).\n- `CELOG_NO_FUNC_INFO`: Disables logging of function information (function name).\n\n### Color and Style Controls\n\nYou can disable colors and styles by setting `CELOG_COLOR` and `CELOG_STYLE` to 0, respectively.\n\n## License 📄\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contributing 🤝\n\nContributions are welcome! Please open an issue or submit a pull request on GitHub.\n\n## Acknowledgements 🙏\n\nCelog is inspired by various logging libraries and aims to provide a simple and lightweight solution for C/C++ projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjoezeke%2Fcelog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjoezeke%2Fcelog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjoezeke%2Fcelog/lists"}