{"id":37427671,"url":"https://github.com/elf4j/elf4j-slf4j","last_synced_at":"2026-01-16T06:32:19.509Z","repository":{"id":65508985,"uuid":"564621856","full_name":"elf4j/elf4j-slf4j","owner":"elf4j","description":"An adapter to use SLF4J as service provider and runtime log engine for the ELF4J (Easy Logging Facade for Java) API","archived":false,"fork":false,"pushed_at":"2024-09-09T07:08:21.000Z","size":116,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-10T20:34:28.014Z","etag":null,"topics":["api","elf4j","java","java-logger","java-logging","java-logging-facade","logging","logging-framework","logging-library","slf4j","spi"],"latest_commit_sha":null,"homepage":"https://elf4j.github.io/elf4j-slf4j/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elf4j.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-11-11T05:23:50.000Z","updated_at":"2024-06-09T22:53:46.000Z","dependencies_parsed_at":"2024-04-22T09:26:17.602Z","dependency_job_id":null,"html_url":"https://github.com/elf4j/elf4j-slf4j","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/elf4j/elf4j-slf4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf4j%2Felf4j-slf4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf4j%2Felf4j-slf4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf4j%2Felf4j-slf4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf4j%2Felf4j-slf4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elf4j","download_url":"https://codeload.github.com/elf4j/elf4j-slf4j/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elf4j%2Felf4j-slf4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["api","elf4j","java","java-logger","java-logging","java-logging-facade","logging","logging-framework","logging-library","slf4j","spi"],"created_at":"2026-01-16T06:32:14.756Z","updated_at":"2026-01-16T06:32:19.490Z","avatar_url":"https://github.com/elf4j.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elf4j-slf4j\n\nAn adapter to use [SLF4J](https://www.slf4j.org/) as service provider and runtime log engine for\nthe [ELF4J](https://github.com/elf4j/elf4j) (Easy Logging Facade for Java) API\n\n## User story\n\nAs an application developer using the [ELF4J](https://github.com/elf4j/elf4j) API, I want to have the option of\nselecting [SLF4J](https://www.slf4j.org/) as my log engine, at application deploy time without code change or\nre-compile.\n\n## Prerequisite\n\n- Java 8+\n\n## Get it...\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.elf4j/elf4j-slf4j.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.elf4j%22%20AND%20a:%22elf4j-slf4j%22)\n\n## Use it...\n\nIf you are using the [ELF4J API](https://github.com/elf4j/elf4j/) for logging, and wish to select or change to use SLF4J\nas the run-time implementation, then simply pack this service provider in the classpath when the application deploys. No\ncode change needed. At compile time, the client code is unaware of this run-time logging service provider. With the\nELF4J facade, opting for SLF4J as the logging implementation is a deployment-time decision.\n\nThe usual [SLF4J configuration](https://www.slf4j.org/manual.html#swapping) applies.\n\nWith Maven, in addition to use compile-scope on the [ELF4J API](https://github.com/elf4j/elf4j) dependency, an end-user\napplication would use runtime-scope for this provider as a dependency:\n\n```html\n\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.elf4j\u003c/groupId\u003e\n    \u003cartifactId\u003eelf4j\u003c/artifactId\u003e\n    \u003cscope\u003ecompile\u003c/scope\u003e\n\u003c/dependency\u003e\n\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.elf4j\u003c/groupId\u003e\n    \u003cartifactId\u003eelf4j-slf4j\u003c/artifactId\u003e\n    \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\nNote: Only one logging provider such as this should be in effect at run-time. If multiple providers end up in the final\nbuild of an application, somehow, then the `elf4j.service.provider.fqcn` system property will have to be used to select\nthe desired provider.\n\n```\njava -Delf4j.service.provider.fqcn=\"elf4j.slf4j.Slf4jLoggerFactory\" -jar MyApplication.jar\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felf4j%2Felf4j-slf4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felf4j%2Felf4j-slf4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felf4j%2Felf4j-slf4j/lists"}