Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] How to setup Log4J to capture SQL

EclipseLink supports its own logger, and integration with Java logging, and
some app server's logging, but not currently Log4J.

You can integrate your own logger for this, see:
http://wiki.eclipse.org/EclipseLink/Foundation/Logging



joen wrote:
> 
> I have setup (using Spring) EclipseLink to show the sql on the console.  I
> am using Log4J as my logging framework.  I have correctly setup my log4j
> for
> my web application except for the fact that the SQL generated by
> EclipseLink
> is not captured by log4j.  That is, the SQL log entries do not have the
> timestamp and other information that my other log entries have.
> 
> What class does the actual logging of the SQL?  Are there any settings
> that
> I can look at for this?
> 
> Thanks.
> 
> Joen Moren
> 
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/How-to-setup-Log4J-to-capture-SQL-tp23617659p23637070.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top