{"id":31943280,"url":"https://github.com/luminus-framework/log4j-edn-config","last_synced_at":"2025-12-12T01:35:11.474Z","repository":{"id":62433431,"uuid":"62724401","full_name":"luminus-framework/log4j-edn-config","owner":"luminus-framework","description":"EDN configuration plugin for log4j","archived":false,"fork":false,"pushed_at":"2016-07-10T22:21:50.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-21T00:36:09.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luminus-framework.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":"2016-07-06T13:47:39.000Z","updated_at":"2018-04-18T13:40:22.000Z","dependencies_parsed_at":"2022-11-01T21:01:22.234Z","dependency_job_id":null,"html_url":"https://github.com/luminus-framework/log4j-edn-config","commit_stats":null,"previous_names":["yogthos/log4j-edn-config"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luminus-framework/log4j-edn-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminus-framework%2Flog4j-edn-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminus-framework%2Flog4j-edn-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminus-framework%2Flog4j-edn-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminus-framework%2Flog4j-edn-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luminus-framework","download_url":"https://codeload.github.com/luminus-framework/log4j-edn-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminus-framework%2Flog4j-edn-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018554,"owners_count":26086404,"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-14T02:00:06.444Z","response_time":60,"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-14T09:50:21.298Z","updated_at":"2025-10-14T09:50:46.138Z","avatar_url":"https://github.com/luminus-framework.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log4j-edn-config\n\nA Clojure library designed to provide EDN configuration support for log4j2\n\n## Usage\n\n\n[![Clojars Project](https://img.shields.io/clojars/v/log4j-edn-config.svg)](https://clojars.org/log4j-edn-config)\n\n**warning** Log4j has [a bug](https://issues.apache.org/jira/browse/LOG4J2-369) that makes plugins incompatible with compatible uberjars. Log4j generates a plugin dat file, and only a single file can be present on the classpath, when multiple ones are present, then you'll end up with unexpected behaviors. Maven provides a [plugin](https://stackoverflow.com/questions/25065580/log4j2-custom-plugins-annotation-processing-with-maven-assembly-plugin) for handling the issue, however there's no way to do that via Leiningen at the moment.\n\nInclude the dependency in the project, log4j will pick it and allow using `.edn` files for configuraiton.\nThe logging configruation must be present under the `:logger` key in the EDN file, e.g:\n\n```clojure\n{:logger\n {:configuration\n  {:name \"DefaultConfig\"\n   :ThresholdFilter {:level \"debug\"}\n   :appenders\n   {:appender\n    [{:type \"Console\"\n      :name \"Console\"\n      :target \"SYSTEM_OUT\"\n      :PatternLayout {:pattern \"[%d][%p][%c] %m%n\"}}\n     {:type \"RollingFile\"\n      :name \"File\"\n      :fileName \"./log/myapp.log\"\n      :filePattern \"./log/myapp-%d{MM-dd-yyyy}-%i.log.gz\"\n      :PatternLayout {:pattern \"[%d][%p][%c] %m%n\"}\n      :DefaultRolloverStrategy {:max \"10\"}\n      :Policies\n      {:SizeBasedTriggeringPolicy {:size \"10 MB\"}}}]}\n   :loggers {:logger\n             [{:name \"org.xnio.nio\"\n               :level \"warn\"}]\n             :root {:level \"info\"\n                    :AppenderRef\n                    [{:ref \"Console\"}\n                     {:ref \"File\"}]}}}}}\n\n```\n\nThe EDN under the `:logger` key is converted to JSON and follows log4j JSON configuration format.\nSee the official log4j documentation on [configuring JSON logging](https://logging.apache.org/log4j/2.x/manual/configuration.html#JSON) for details.\n\n## License\n\nCopyright © 2016 Dmitri Sotnikov\n\nDistributed under the Apache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluminus-framework%2Flog4j-edn-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluminus-framework%2Flog4j-edn-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluminus-framework%2Flog4j-edn-config/lists"}