1 Replies - 173 Views - Last Post: 08 June 2020 - 01:55 AM

#1 [email protected]   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-June 20

Log eclipselink JPA SQL in weblogic 12c console

Posted 07 June 2020 - 11:03 PM

I am using eclipseLink 2.5.2 JPA library with weblogic 12.2.1.4.0 I want to view all the sql queries executed by JPA in the weblogic console. I have done the below changes to my persistence.xml and enabled (Redirect stdout logging enabled and Redirect stderr logging enabled):

<property name="eclipselink.logging.file" value="output.log"/>
<property name="eclipselink.logging.logger" value="ServerLogger"/>
<property name="eclipselink.weaving" value="static" />
<property name="eclipselink.logging.level.sql" value="FINEST" />
<property name="eclipselink.logging.level" value="FINEST" />
<property name="eclipselink.logging.level.cache" value="FINEST" />
<property name="openjpa.Log" value="SQL=TRACE"/>
Still i am not able to view the generated sql in my weblogic console. Please let me know if i have missed any configuration.

Is This A Good Question/Topic? 0
  • +

Replies To: Log eclipselink JPA SQL in weblogic 12c console

#2 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3698
  • View blog
  • Posts: 16,952
  • Joined: 20-September 08

Re: Log eclipselink JPA SQL in weblogic 12c console

Posted 08 June 2020 - 01:55 AM

But you're telling it to log to a file ...

Quote

 <property name="eclipselink.logging.file" value="output.log"/>

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1