An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

Log4j Equinox [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/com.github.marschall.log4j-equinox/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/com.github.marschall.log4j-equinox) [![Javadocs](https://www.javadoc.io/badge/com.github.marschall/com.github.marschall.log4j-equinox.svg)](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 your settings.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

```