Skip to main content

[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:

You should be able to override the logging level setting for specific categories. e.g. eclipselink.logging.level.sql = FINER

Swierzynski, Rafal wrote:

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.


-----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:
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.

kind regards,


----- 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


  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 mailing list

eclipselink-users mailing list

Back to the top