https://github.com/elf4j/elf4j-logback
An adapter to use LOGBACK as service provider and runtime log engine for the ELF4J (Easy Logging Facade for Java) API
https://github.com/elf4j/elf4j-logback
api elf4j java java-logger java-logging java-logging-facade logback logging logging-facade logging-framework logging-library logging-service logging-service-provider spi
Last synced: 7 days ago
JSON representation
An adapter to use LOGBACK as service provider and runtime log engine for the ELF4J (Easy Logging Facade for Java) API
- Host: GitHub
- URL: https://github.com/elf4j/elf4j-logback
- Owner: elf4j
- License: mit
- Created: 2022-10-21T02:07:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T07:03:27.000Z (over 1 year ago)
- Last Synced: 2025-07-05T06:53:56.069Z (7 months ago)
- Topics: api, elf4j, java, java-logger, java-logging, java-logging-facade, logback, logging, logging-facade, logging-framework, logging-library, logging-service, logging-service-provider, spi
- Language: Java
- Homepage: https://elf4j.github.io/elf4j-logback/
- Size: 118 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elf4j-logback
An adapter to use [LOGBACK](https://logback.qos.ch/) as service provider and runtime log engine
for the [ELF4J](https://github.com/elf4j/elf4j) (Easy Logging Facade for Java) API
## User Story
As an application developer using the [ELF4J](https://github.com/elf4j/elf4j) API, I want to have the option of
selecting [LOGBACK](https://logback.qos.ch/) as my log engine, at application deploy time without code change or
re-compile.
## Prerequisite
Java 8+
## Get It...
[](https://search.maven.org/search?q=g:%22io.github.elf4j%22%20AND%20a:%22elf4j-logback%22)
## Use It...
If you are using the [ELF4J API](https://github.com/elf4j/elf4j) for logging, and wish to select or change to use
LOGBACK as the run-time log engine, then simply pack this service provider in the classpath when the application
deploys. No code change needed. At compile time, the client code is unaware of this run-time logging service provider.
With the ELF4J facade, opting for LOGBACK as the logging implementation is a deployment-time decision.
The usual [LOGBACK configuration](https://logback.qos.ch/manual/configuration.html) applies.
With Maven, in addition to use compile-scope on the [ELF4J API](https://github.com/elf4j/elf4j) dependency, an end-user
application would use runtime-scope for this provider as a dependency:
```html
io.github.elf4j
elf4j
compile
io.github.elf4j
elf4j-logback
runtime
```