Registration Level on Glassfish-3 JPA Eclipselink

How to configure the EAR and the Glassfish server to show the FINE level on the development server, but the same lesson shows the INFO level on production machines?

At the time of the configuration change, in the persistence.xml file every time I deploy it to productive machines. But s.t. I forget, and the machine begins to flood the log files.

0
source share
2 answers

You must enter

<jvm-options>-Declipselink.logging.level=FINE</jvm-options> 

in the java-config tag of your config.xml on your development machine.

AND DO NOT paste the logging level property into the persistence.xml file.

+2
source

You can also set the log level of EclipseLink using the System properties (or you can set the log level in code using SessionCustomizer).

0
source

Source: https://habr.com/ru/post/1440534/


All Articles