<property name="eclipselink.logging.level" value="FINE" />
How can I setup the logging level by server. I want to see Level.FINE on my development server. But of course only Level.WARNING on the productive server.
If I put the line above into the persistence.xml then it is automatically setup on both machines. I must remember to switch it off by hand. And that's of course dangerous.
Thanks a lot.
You can refer EclipseLink/Examples/JPA/Logging
Note: Setting eclipselink.logging.level to FINE is not sufficient (as of EclipseLink 2.4.0 - Juno), you have to set eclipselink.logging.level.sql to FINE.
<property name="eclipselink.logging.level" value="FINE"/>
<property name="eclipselink.logging.level.sql" value="FINE"/>
<property name="eclipselink.logging.parameters" value="true"/>