Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Loging SQL to a file
Loging SQL to a file [message #988720] Sat, 01 December 2012 22:44 Go to next message
Anis Malik is currently offline Anis MalikFriend
Messages: 1
Registered: December 2012
Junior Member

I need help with configuration settings for logging SQL statements. If I use the Default Logger, the INPUT statements are displayed on the console. But when I change the configuration setting to output the logs to file, EclipseLink no longer logs the INPUT statements...

I would be very grateful if someone could provide me guidance as to what I need to do to get this fixed.


I have provided my persistence.xml below:

<?xml version="1.0" encoding="UTF-8"?>
    <persistence-unit name="PerformanceMonitoring" transaction-type="JTA">
        	<property name="eclipselink.logging.file" value="./monitoring.log"/>
         	<property name="eclipselink.logging.level" value="FINEST" />
			<property name="eclipselink.logging.level.sql" value="FINE" />
			<property name="eclipselink.logging.parameters" value="true"/>			
			<property name="eclipselink.logging.level.connection" value="FINE" />
			<property name="eclipselink.logging.level.cache" value="FINE" />
			<property name="eclipselink.logging.level.sequencing" value="FINE" />
			<property name="eclipselink.logging.level.transaction" value="FINE" />
			<property name="eclipselink.logging.level.query" value="FINEST" />			         	
Re: Loging SQL to a file [message #989100 is a reply to message #988720] Tue, 04 December 2012 15:37 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

What are the INPUT statements?

James : Wiki : Book : Blog : Twitter
Re: Loging SQL to a file [message #989615 is a reply to message #989100] Thu, 06 December 2012 23:21 Go to previous message
J LM is currently offline J LMFriend
Messages: 11
Registered: December 2012
Junior Member
Do you mean binding in case of prepared statements ?
Previous Topic:@CascadeOnDelete
Next Topic:eclipselink.ddl-generation and JTA datasources
Goto Forum:

Current Time: Sun May 27 08:11:20 GMT 2018

Powered by FUDForum. Page generated in 0.01584 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top