[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] eclipselink logging
|
There is a persistence unit property that could help.
Take a look at CATEGORY_LOGGING_LEVEL_ in our javadocs:
http://www.eclipse.org/eclipselink/api/2.0.1/index.html
You should be able to override the logging level setting for specific
categories. e.g. eclipselink.logging.level.sql = FINER
Swierzynski, Rafal wrote:
Hi,
Wouldn't something like this work: using a JDK logger (available in EclipseLink) and setting the root logger to, say, INFO, and then fine-tune the logger of the class that deals with the SQL?
Just a though.
RafaĆ
-----Original Message-----
From: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-users-bounces@xxxxxxxxxxx] On Behalf Of JAAP SPIERING
Sent: Friday, March 26, 2010 10:17 AM
To: yannick.majoros@xxxxxxxxxxxx
Cc: eclipselink-users@xxxxxxxxxxx
Subject: Re: [eclipselink-users] eclipselink logging
Hi Yannick,
yes, you are free to provide your own implementation of EclipseLink's SessionLog class.
A very simple example is shown here: http://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomLogger
The SessionLogEntry class and SessionLog interface provide a lot of information about what is being logged, so in your custom implementation you can tune the logging exactly the way you want to.
http://www.eclipse.org/eclipselink/api/1.2/org/eclipse/persistence/logging/SessionLog.html
http://www.eclipse.org/eclipselink/api/1.2/org/eclipse/persistence/logging/SessionLogEntry.html
kind regards,
Jaap
----- Original Message -----
From: yannick.majoros@xxxxxxxxxxxx
To: eclipselink-users@xxxxxxxxxxx
Sent: Friday, March 26, 2010 10:00:22 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: [eclipselink-users] eclipselink logging
Hi,
We are logging all sql requests, even though I read it isn't recommanded.
Would there be a way to log those requests, but not all other details
from the FINE level (weaving, ...)?
Thank you,
Yannick Majoros
_______________________________________________
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
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users