{"id":13339603,"url":"https://github.com/wengwalker/logc","last_synced_at":"2026-01-20T18:23:59.474Z","repository":{"id":43281749,"uuid":"511198979","full_name":"hulkiedo17/logc","owner":"hulkiedo17","description":"logc - small and simple C/C++ logger library","archived":false,"fork":false,"pushed_at":"2022-08-07T14:35:20.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-30T20:58:26.122Z","etag":null,"topics":["c","c-plus-plus","library","linux","log","logger","unix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hulkiedo17.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-07-06T15:46:28.000Z","updated_at":"2022-09-03T11:09:43.000Z","dependencies_parsed_at":"2022-09-12T21:24:16.902Z","dependency_job_id":null,"html_url":"https://github.com/hulkiedo17/logc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulkiedo17%2Flogc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulkiedo17%2Flogc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulkiedo17%2Flogc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulkiedo17%2Flogc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hulkiedo17","download_url":"https://codeload.github.com/hulkiedo17/logc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221232987,"owners_count":16781668,"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":["c","c-plus-plus","library","linux","log","logger","unix"],"created_at":"2024-07-29T19:21:07.580Z","updated_at":"2026-01-20T18:23:59.433Z","avatar_url":"https://github.com/hulkiedo17.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this?\n\nThis is a small and simple c logger library for C/C++.\n\nYou can see comments that describes the functions in library in logc.h file. Also you can see the options for build.sh script, just pass them -h option.\n\n# How to compile\n\nTo compile library, you need to run build.sh, like this:\n\n```sh\n$ ./build.sh\n```\n\n# Usage\n\nTo using library in your projects, you need to include logc.h header file, and link your code like this:\n\n```sh\n$ gcc [files...] -llogc [options...]\n```\n\nAlso, before starting usage macros, initialize the logger, by calling init_logger(). Then you can use macros. Below you can see small example:\n\n```c\n#include \u003cstdio.h\u003e\n#include \"logc.h\"\n\nint main(void)\n{\n\t// NULL and true means that logger will be used default path to log file\n\tinit_logger(NULL, true);\n\n\tlog_debug(\"test log #1\");\n\n\tlog_warning(\"test log #2\");\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwengwalker%2Flogc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwengwalker%2Flogc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwengwalker%2Flogc/lists"}