Nov 6, 2017

Set EclipseLink Logging for GlassFish

Set EclipseLink Logging for GlassFish

Assuming you have a domain called domain1:
  • Edit $GLASSFISH_HOME/glassfish/domains/domain1/config/ and add the following lines:
    1. org.eclipse.persistence.level = FINE
    2. org.eclipse.persistence.sql.level = FINE
      • The first allows you to see SQL statements.  The second must be set in order for SQL parameters to be seen, but it is not sufficient on its own.
  • In your META-INF/persistence.xml, add the following element as a child of the<properties> element:
    <property name="eclipselink.logging.parameters" value="true"/>
You can change the log level by the following too:
asadmin set-log-levels org.eclipse.persistence.level = FINE
asadmin set-log-levels org.eclipse.persistence.sql.level = FINE

Post a Comment

Featured Post

Setup Chinese Input Method in Ubuntu 17.10 Artful

sudo apt install ibus-sunpinyin After either of those commands do not forget to restart the IBus daemon ibus restart You might need t...