Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipselink-users] Logging SQL results - ALL/FINEST currently both are the same

Gili,
	To get as much logs as possible I currently use FINEST.

	The ALL level would output more logs than FINEST since it has a lower level though.
    public static final int FINEST = 1;
    public static final int ALL = 0;	

	However, I did a search on ALL usage in the code and it looks like we don't use it anywhere - yet.  So there will be no extra logging in a switch from FINEST to ALL.

	I will update the example logging page below with thest results on ALL and recommend that ALL be used over FINEST   to pick up any logs that may be logged at a finer level than FINEST in the future

	thank you for bringing this up.
	/michael


-----Original Message-----
From: cowwoc [mailto:cowwoc@xxxxxxxxxxxxxxxx]
Sent: Monday, September 22, 2008 09:26
To: eclipselink-users@xxxxxxxxxxx
Subject: RE: [eclipselink-users] Logging SQL results




Ah! :) Can someone please add this to the documentation?
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging doesn't mention
this logging level or what extra it will log.

Thanks,
Gili


Thomas Paradies wrote:
> 
> Gili,
> 
> set eclipselink.logging.level to the finest level (ALL).
> 
> Thomas 
> 
> -----Original Message-----
> From: eclipselink-users-bounces@xxxxxxxxxxx on behalf of cowwoc
> Sent: Mon 9/22/2008 5:52 AM
> To: eclipselink-users@xxxxxxxxxxx
> Subject: Re: [eclipselink-users] Logging SQL results
>  
> 
> I tracked this problem down to a bug in the way warp-persist is handling
> Transaction-per-Request. The same EntityManager was being reused across
> different HTTP requests leading to the following behavior:
> 
> - Request goes to Thread 1. It saves version 10
> - Request goes to Thread 2. It saves version 11.
> - Request goes to Thread 1. The query returns the cached object (version
> 10). When the thread attempts to commit this a OptimisticLockException is
> thrown.
> 
> I'd still to know how to get EclipseLink to log SQL query results
> though...
> 
> Gili
> -- 
> View this message in context:
> http://www.nabble.com/Logging-SQL-results-tp19600126p19601515.html
> Sent from the EclipseLink - Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 
>  
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Logging-SQL-results-tp19600126p19607920.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top