Quick update on the Hibernate extension logging front
this.logs support (Lucee 7.0+)
The extension now respects application-level this.logs for the orm log. Previously, changing the orm log level required configImport(type:"server") which affected every app on the server.
Now each appplication.cfc can control its own level:
this.logs = {
"orm": { "appender": "console", "level": "trace" }
};
this.ormSettings = {
logSQL: true,
logParams: true
};
On 6.2, server-level config via Lucee Admin or configImport still works as before.
Lifecycle logging
The extension now logs its own lifecycle at DEBUG level β no ormSettings flags needed:
ORM initializing for application [myApp], dbcreate [update]
ORM initialized [12] entities for application [myApp], OrmLoggingSettings[logSQL=true, ...]
ormReload() for application [myApp]
Useful for confirming ORM actually started, what settings itβs running with, and how many entities it found.
Log level cheat sheet
- DEBUG β
logSQL,logCache, lifecycle messages - TRACE β everything including
logParamsandlogVerbose
PR: LDEV-6159 this.logs support, lifecycle logging, test coverage by zspitzer Β· Pull Request #45 Β· lucee/extension-hibernate Β· GitHub
JIRA: LDEV-6159