To enable logging of Hibernate statements and parameters in JBoss (now known as WildFly), you’ll need to adjust the logging configuration to capture the necessary Hibernate SQL logging information.
Configure JBoss/WildFly Logging for Hibernate
- Open the standalone.xml(ordomain.xml) configuration file:- This file is located in the JBOSS_HOME/standalone/configurationdirectory for standalone mode orJBOSS_HOME/domain/configurationfor domain mode.
 
- This file is located in the 
- Find the <subsystem>tag for logging.
- Add the following logger entries:
    <logger category="org.hibernate.SQL">
        <level name="DEBUG"/>
    </logger>
     <logger category="org.hibernate.type.descriptor.sql.BasicBinder">
        <level name="TRACE"/>
     </logger>
4. Restart Jboss




