{"id":45724549,"url":"https://github.com/linuxdeepin/dtklog","last_synced_at":"2026-04-23T15:01:30.070Z","repository":{"id":246493033,"uuid":"821283508","full_name":"linuxdeepin/dtklog","owner":"linuxdeepin","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-09T13:25:07.000Z","size":256,"stargazers_count":3,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-04-09T15:23:28.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linuxdeepin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.LGPL","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-28T07:46:08.000Z","updated_at":"2026-04-09T13:24:26.000Z","dependencies_parsed_at":"2024-06-28T09:42:01.239Z","dependency_job_id":"7e42aed8-c9e8-4230-903e-e638ce2dccab","html_url":"https://github.com/linuxdeepin/dtklog","commit_stats":null,"previous_names":["linuxdeepin/dtklog"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/linuxdeepin/dtklog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxdeepin%2Fdtklog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxdeepin%2Fdtklog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxdeepin%2Fdtklog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxdeepin%2Fdtklog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuxdeepin","download_url":"https://codeload.github.com/linuxdeepin/dtklog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxdeepin%2Fdtklog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32185320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T11:42:27.955Z","status":"ssl_error","status_checked_at":"2026-04-23T11:42:18.877Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-02-25T07:48:51.073Z","updated_at":"2026-04-23T15:01:30.064Z","avatar_url":"https://github.com/linuxdeepin.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DtkLog\n\nSimple, convinient and thread safe logger for Qt-based C++ apps\n\n## Short example\n\n```cpp\n#include \u003cQCoreApplication\u003e\n#include \u003cQDebug\u003e\n\n#include \u003cdloghelper.h\u003e\n#include \u003cConsoleAppender.h\u003e\n\nDLOG_CORE_USE_NAMESPACE\nint main(int argc, char *argv[])\n{\n    QCoreApplication a(argc, argv);\n    \n    auto consoleAppender = new ConsoleAppender;\n    consoleAppender-\u003esetFormat(\"[%{type:-7}] \u003c%{Function}\u003e %{message}\\n\");\n    dlogger-\u003eregisterAppender(consoleAppender);\n\n    dInfo(\"Starting the application\");\n\n    dWarning() \u003c\u003c \"Something went wrong.\" \u003c\u003c \"Result code is\" \u003c\u003c -1;\n\n    return 0;\n}\n```\n\n## Adding DtkLog to your project\n\nAdd this repo as a git submodule to your project. \n\n\nInclude it to your CMakeLists.txt file:\n```cmake\nfind_package(DtkLog REQUIRED)\n...\n\n...\nTARGET_LINK_LIBRARIES(${your_target} ... Dtk::Log)\n```\n\nInclude `dloghelper.h` and one or several appenders of your choice:\n```cpp\n#include \u003cdloghelper.h\u003e\n#include \u003cConsoleAppender.h\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxdeepin%2Fdtklog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxdeepin%2Fdtklog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxdeepin%2Fdtklog/lists"}