Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/Foundation/Logging"

(Logging Extension Basics)
(Logging Extension Basics)
Line 19: Line 19:
 
Customizing EclipseLink to use another logging framework or integrate with an existing logging infrastructure involves:
 
Customizing EclipseLink to use another logging framework or integrate with an existing logging infrastructure involves:
  
# Implementing your own SessionLog
+
# Implementing your own [http://www.eclipse.org/eclipselink/api/1.0/org/eclipse/persistence/logging/SessionLog.html SessionLog]
 
# Configuring the use of your SessionLog
 
# Configuring the use of your SessionLog
  

Revision as of 09:06, 15 May 2008

How do I integrate with a third party logging framework

EclipseLink's default logging is based on Java (1.4 an higher) java.util.logging but is also extensible to allow other logging frameworks to be used.

This how-to example will illustrate how other logging solutions such as Log4J and Apache common logging can be easily used with EclipseLink.


Logging Extension Basics

Customizing EclipseLink to use another logging framework or integrate with an existing logging infrastructure involves:

  1. Implementing your own SessionLog
  2. Configuring the use of your SessionLog

Using Log4J

UNDER CONSTRUCTION

Using Apache Commons Logging

UNDER CONSTRUCTION