https://github.com/marschall/log4j-equinox
A Log4j 2 API implementation using the Equinox ExtendedLogService
https://github.com/marschall/log4j-equinox
Last synced: 3 months ago
JSON representation
A Log4j 2 API implementation using the Equinox ExtendedLogService
- Host: GitHub
- URL: https://github.com/marschall/log4j-equinox
- Owner: marschall
- Created: 2022-04-11T17:20:44.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-21T19:19:39.000Z (10 months ago)
- Last Synced: 2025-01-16T02:44:46.544Z (5 months ago)
- Language: Java
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Log4j Equinox [](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/com.github.marschall.log4j-equinox) [](https://www.javadoc.io/doc/com.github.marschall/com.github.marschall.log4j-equinox)
=====================This is an implementation of [Log4j 2 API](https://logging.apache.org/log4j/2.x/log4j-api/index.html) using the [Equinox](https://www.eclipse.org/equinox/) [ExtendedLogService](https://bugs.eclipse.org/bugs/show_bug.cgi?id=260672).
In plain words it makes all code that uses Log4j 2 API log to the Equinox `.metadata/.log` log file. It does this by redirecting all the log messages to the Equinox `ExtendedLogService`. This is mostly interesting for code that runs inside Eclipse RCP applications. This does _not_ make Equinox use Log4j 2.
Simply deploy this along the Log4j 4 API bundle (`org.apache.logging.log4j.api`).
Implementation Notes
--------------------We rely on [OSGi Service Loader Mediator](https://eclipse.dev/eclipse/news/4.28/platform.php#slf4j.api-version-2)
Building
--------
If you want to build this project then you need [Maven 3](https://maven.apache.org/) and add the following section to yoursettings.xml
```xml
eclipse
false
eclipse-32
p2
https://download.eclipse.org/eclipse/updates/4.32/
eclipse-28-local
file:///home/user/bin/eclipse/eclipse-4.32
```