Allow for Hibernate logging to be configured

Description

There is a lot of extra logging Hibernate can do which is almost necessary to figure out some errors like with DDL exports. Adobe ColdFusion allows this to be customized as well. Please allow all Log4j settings that Hibernate uses to be exposed to help with debugging Lucee apps using ORM.

https://helpx.adobe.com/coldfusion/developing-applications/coldfusion-orm/configure-orm/logging.html

https://www.mkyong.com/hibernate/hibernate-display-generated-sql-to-console-show_sql-format_sql-and-use_sql_comments/

Activity

Zac Spitzer 
14 December 2022 at 19:11

I’ve closed a few linked tickets as duplicates, there’s useful info etc in them, but we need just one ticket

Michael Born @ Ortus 
4 August 2021 at 19:46

Here’s an acceptable workaround which will take all orm.hibernate log messages and send them to the console:

Michael Born @ Ortus 
16 June 2021 at 13:11

Here’s an example of a Hibernate log message I cannot access due to the inability to configure log4j:

Source - https://github.com/hibernate/hibernate-orm/blob/1176198873dd353c10d888e90d4afbbc91e706e1/hibernate-core/src/main/java/org/hibernate/tool/schema/extract/internal/InformationExtractorJdbcDatabaseMetaDataImpl.java#L748-L754

For reference, here are my current ORM settings:

Samuel W. Knowlton 
28 January 2019 at 16:40

this morning we have exactly Andrew's problem.

Maybe this ticket shouldn't be flagged as 'New' anymore....

Patrick Quinn 
9 February 2018 at 23:40

FYI, I just sent an internal message on this one, to move the ticket review forward. Stay tuned. Thanks as always for the comments/prompts.

Details

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 5 May 2017 at 17:02
Updated 14 December 2022 at 19:11