{"id":31934608,"url":"https://github.com/lambdaisland/log4j2","last_synced_at":"2026-01-20T16:49:17.960Z","repository":{"id":312256304,"uuid":"1046906371","full_name":"lambdaisland/log4j2","owner":"lambdaisland","description":"Log4j2 wrapper for Clojure, drop in replacement for pedestal.log ","archived":false,"fork":false,"pushed_at":"2025-08-30T07:02:07.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-14T06:44:53.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lambdaisland.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-08-29T12:22:00.000Z","updated_at":"2025-08-30T07:02:10.000Z","dependencies_parsed_at":"2025-08-29T14:40:21.468Z","dependency_job_id":"fb04a03b-ae3f-45ce-aec8-996b1656dc4d","html_url":"https://github.com/lambdaisland/log4j2","commit_stats":null,"previous_names":["lambdaisland/log4j2"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lambdaisland/log4j2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaisland%2Flog4j2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaisland%2Flog4j2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaisland%2Flog4j2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaisland%2Flog4j2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdaisland","download_url":"https://codeload.github.com/lambdaisland/log4j2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaisland%2Flog4j2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280551638,"owners_count":26349597,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-10-14T06:44:47.407Z","updated_at":"2025-10-25T20:09:08.947Z","avatar_url":"https://github.com/lambdaisland.png","language":"Clojure","funding_links":["https://opencollective.com/lambda-island","http://opencollective.com/lambda-island"],"categories":[],"sub_categories":[],"readme":"# log4j2\n\n\u003c!-- badges --\u003e\n[![cljdoc badge](https://cljdoc.org/badge/com.lambdaisland/log4j2)](https://cljdoc.org/d/com.lambdaisland/log4j2) [![Clojars Project](https://img.shields.io/clojars/v/com.lambdaisland/log4j2.svg)](https://clojars.org/com.lambdaisland/log4j2)\n\u003c!-- /badges --\u003e\n\nLog4j2 wrapper for Clojure\n\n## Features\n\n\u003c!-- installation --\u003e\n## Installation\n\nTo use the latest release, add the following to your `deps.edn` ([Clojure CLI](https://clojure.org/guides/deps_and_cli))\n\n```\ncom.lambdaisland/log4j2 {:mvn/version \"0.2.6\"}\n```\n\nor add the following to your `project.clj` ([Leiningen](https://leiningen.org/))\n\n```\n[com.lambdaisland/log4j2 \"0.2.6\"]\n```\n\u003c!-- /installation --\u003e\n\n## Rationale\n\nAfter many years of Slf4j and Logback, we are starting to shift to Log4j2 for\nnew projects. This micro-library contains a namespace which mimics pedestal.log,\nand thus can act as a drop-in replacement.\n\n## Usage\n\n```\n(ns my.ns\n  (:require \n    [lambdaisland.log4j2 :as log]))\n    \n(log/debug :db/preparing {:query query})\n(log/info :application/starting {:port 1234})\n(log/warn :config/missing-value {:key k} :message \"Configuration value not found, using nil\")\n(log/error :api-call/failed {:req req} :exception e)\n```\n\nAll calls have the same signature, an arbitrary sequence of keys and values.\nThese become key-values in a Log4j2 `MapMessage`, and can be logged e.g. to JSON\nand fed into structured logging solutions.\n\nA few keys have a special meaning\n\n- `:exception` for throwables\n- `:message` for a human readable message\n\nThese will be passed on to Log4j2 in the appropriate fields.\n\n\u003c!-- opencollective --\u003e\n## Lambda Island Open Source\n\nThank you! This project is made possible thanks to our generous backers. [Become a\nbacker on OpenCollective](https://opencollective.com/lambda-island) so that we\ncan continue to make log4j2 better.\n\n\u003ca href=\"https://opencollective.com/lambda-island\"\u003e\n\u003cimg src=\"https://opencollective.com/lambda-island/organizations.svg?avatarHeight=46\u0026width=800\u0026button=false\"\u003e\n\u003cimg src=\"https://opencollective.com/lambda-island/individuals.svg?avatarHeight=46\u0026width=800\u0026button=false\"\u003e\n\u003c/a\u003e\n\u003cimg align=\"left\" src=\"https://github.com/lambdaisland/open-source/raw/master/artwork/lighthouse_readme.png\"\u003e\n\n\u0026nbsp;\n\nlog4j2 is part of a growing collection of quality Clojure libraries created and maintained\nby the fine folks at [Gaiwan](https://gaiwan.co).\n\nPay it forward by [becoming a backer on our OpenCollective](http://opencollective.com/lambda-island),\nso that we continue to enjoy a thriving Clojure ecosystem.\n\nYou can find an overview of all our different projects at [lambdaisland/open-source](https://github.com/lambdaisland/open-source).\n\n\u0026nbsp;\n\n\u0026nbsp;\n\u003c!-- /opencollective --\u003e\n\n\u003c!-- contributing --\u003e\n## Contributing\n\nWe warmly welcome patches to log4j2. Please keep in mind the following:\n\n- adhere to the [LambdaIsland Clojure Style Guide](https://nextjournal.com/lambdaisland/clojure-style-guide)\n- write patches that solve a problem \n- start by stating the problem, then supply a minimal solution `*`\n- by contributing you agree to license your contributions as MPL 2.0\n- don't break the contract with downstream consumers `**`\n- don't break the tests\n\nWe would very much appreciate it if you also\n\n- update the CHANGELOG and README\n- add tests for new functionality\n\nWe recommend opening an issue first, before opening a pull request. That way we\ncan make sure we agree what the problem is, and discuss how best to solve it.\nThis is especially true if you add new dependencies, or significantly increase\nthe API surface. In cases like these we need to decide if these changes are in\nline with the project's goals.\n\n`*` This goes for features too, a feature needs to solve a problem. State the problem it solves first, only then move on to solving it.\n\n`**` Projects that have a version that starts with `0.` may still see breaking changes, although we also consider the level of community adoption. The more widespread a project is, the less likely we're willing to introduce breakage. See [LambdaIsland-flavored Versioning](https://github.com/lambdaisland/open-source#lambdaisland-flavored-versioning) for more info.\n\u003c!-- /contributing --\u003e\n\n\u003c!-- license --\u003e\n## License\n\nCopyright \u0026copy; 2025 Arne Brasseur and Contributors\n\nLicensed under the term of the Mozilla Public License 2.0, see LICENSE.\n\u003c!-- /license --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdaisland%2Flog4j2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdaisland%2Flog4j2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdaisland%2Flog4j2/lists"}