{"id":28436923,"url":"https://github.com/cern/narlibs-log4cplus","last_synced_at":"2025-06-27T20:32:07.650Z","repository":{"id":30886402,"uuid":"34444107","full_name":"CERN/narlibs-log4cplus","owner":"CERN","description":"Building LOG4CPLUS from source via CMake and packaging as NAR for reuse","archived":false,"fork":false,"pushed_at":"2019-01-18T11:01:22.000Z","size":11904,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-05T23:08:00.716Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CERN.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":"2015-04-23T08:34:13.000Z","updated_at":"2019-04-11T08:03:25.000Z","dependencies_parsed_at":"2022-09-07T15:00:48.727Z","dependency_job_id":null,"html_url":"https://github.com/CERN/narlibs-log4cplus","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/CERN/narlibs-log4cplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2Fnarlibs-log4cplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2Fnarlibs-log4cplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2Fnarlibs-log4cplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2Fnarlibs-log4cplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CERN","download_url":"https://codeload.github.com/CERN/narlibs-log4cplus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2Fnarlibs-log4cplus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262327307,"owners_count":23294248,"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":[],"created_at":"2025-06-05T23:07:58.623Z","updated_at":"2025-06-27T20:32:07.595Z","avatar_url":"https://github.com/CERN.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maven NAR packaging for log4cplus\n\nPlatform-independent (noarch) NAR packaging for log4cplus.\n\nlog4cplus is a simple to use C++11 logging API providing thread-safe, flexible, and arbitrarily granular control \nover log management and configuration. It is modeled after the Java log4j API.\n\nUplink information :\n\n* https://sourceforge.net/projects/log4cplus/\n* https://sourceforge.net/p/log4cplus/wiki/Home/\n\nUsing the Maven NAR plugin, you can then simply add NAR dependencies to your build - Log4cplus headers and binaries \nwill automatically be integrated in your build.\n\n# Release Notes\n\n## Version 2.0.0\n\nUpstream log4cplus version **2.0.0**\n\nBinaries built on :\n\n* CERN CentOS 7 - gcc 4.8.5, libstdc++ 6, pthread (posix)\n* Windows 10 64 bits - MSVC 14 (MS Visual Studio 2015)\n\n\n# How to use\n\nSimply add the dependency to your Maven NAR like so :\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.cern.narlibs\u003c/groupId\u003e\n  \u003cartifactId\u003elog4cplus\u003c/artifactId\u003e\n  \u003cversion\u003e2.0.0\u003c/version\u003e\n  \u003ctype\u003enar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nNote that Log4cplus v2+ requires C++ 11  (e.g. for GCC you need the option -std=c++11).\n\n\n# How to rebuild the upstream library\n\n## On Linux / CentOS 7\n\n```shell\ngit clone --recursive https://github.com/log4cplus/log4cplus.git\ncd log4cplus\n# Note : we disable SO version to ease relinking\n./configure --enable-so-version=no\n# If aclocal is reported missing...\nautoreconf -f -i\nmake\ncp .libs/liblog4cplus.so ../narlibs-log4cplus/src/nar/resources/aol/amd64-Linux-gpp/lib/\ncp .libs/liblog4cplus.so ../narlibs-log4cplus/src/nar/resources/aol/amd64-Linux-gpp/lib/liblog4cplus-nar-2.0.0.so\n# Copy all headers into the NAR src/nar/resources/noarch/include\ncp -r includes/log4cplus ../narlibs-log4cplus/src/nar/resources/noarch/include\n```\n\n## On Windows\n\n* Open Visual Studio \n* Go to subfolder msvc14\n* Open the log4cplus solution\n* Select the \"release\" configuration with 64 bits architecture\n* Build binaries\n* Place resulting .lib, .dll in ../narlibs-log4cplus/src/nar/resources/aol/amd64-Windows-msvc/lib\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcern%2Fnarlibs-log4cplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcern%2Fnarlibs-log4cplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcern%2Fnarlibs-log4cplus/lists"}