Search code examples
javasqldatabaseloggingweblogic

Logging SQL in Weblogic Server 8.13


I am trying to print out the SQL statement that my EJB uses to create record in the database into a log file.

Does anyone have any experience to do this.

thank you.

Cheers,


Solution

  • Check the documentation/FAQ for your driver. For example, if you're using Oracle's driver, these may help:

    Oracle JDBC Trace Facility
    java.util.logging

    If you're using the WebLogic driver:

    Tracking JDBC Calls with WebLogic JDBC Spy