s-n-ushakov / usn-eclipselink-slf4j

An EclipseLink SessionLog implementation for logging messages through SLF4J.
1 stars 0 forks source link

usn-eclipselink-slf4j

An EclipseLink SessionLog implementation for logging messages through SLF4J.

Background

EclipseLink is a recognized Java persistence framework and the reference implementation for JPA 2.0.

SLF4J is a recognized Java logging API and a framework for bridging different Java logging systems in one application if necessary.

EclipseLink makes use of its own logging platform and has a built-in bridge to java.util.logging system. It is possible to arrange logging from EclipseLink via SLF4J using jul-to-slf4j bridge, but this solution is known to be CPU expensive (see the bridge description).

This project allows direct logging from EclipseLink via SLF4J with necessary precautions taken regarding performance and is implemented after EclipseLink JavaLog.

Other implementations for the same task are also known:

Building

Both pom.xml for Maven and build.xml for Ant are available. Ant buildfile automatically labels every build with current date. Maven builds are labeled with project version from the .pom file, but a warning is issued if this version does not match current date. Artifact/build versions are currently formatted like "YYYYMMDD" rather than "v1.0", as no distinct versioning policy has evolved so far.

Usage – HOW-TO

<property name="eclipselink.logging.logger" value="usn.eclipse.persistence.logging.SLF4JLog" />

Licenses

The project is issued and distributed under the following licenses as per the original license model by EclipseLink:

Distributions

The following distribution types are available:

The latest release can be found here.

TODO