Hi all,
I'm having a (very hard) time trying to configure log level on a webapp (war) with latest
hibernate-release-5.2.10.Final.(
Logging is completely fine in development jar project : no wildfly, no payara nor glassfish, just plain Java and unit test.
like in Vlad's High-Performance Java Persistence book projects.
In that case , no trouble at all with directives like <logger name="org.hibernate" level="info"/> in logback.xml or logback-test.xml.
Even logj4 is OK )
Trouble raise only when deploying a war to an appserver
It used to be so simple back in hibernate 3.x days. Why this no-brainer evolves in complexity ?
Well, what I want to do is this.
I have a server (both
payara 4 and
wildfly-10.1.0.Final )
I also tried
glassfish5 and
payara5 previews.
These are hacking servers. I use them to try and test different proof of concept. Nowadays, as everyone else, I turn towards docker but this is not relevant)
My needs is to embed the hibernate libs and dependencies (so that I don't mess up others app on my server) and being able to tell the server : please just for this currently deployed hack show me hibernate full logs.
(Even if I know about Vlad's blog post =[url]The best way to log JDBC statements
https://vladmihalcea.com/the-best-way-t ... tatements/[/url]. The use case is not the same )
How can I achieve this on payara ? And on wildfly ?
On those two major application server I've been banging my head for hours.
Must have miss something but guys, really, even if I'm an idiot on this
please remember how it was all so simple and smooth, no matter you were under jboss or glassfish server ?
Do we really gain anything with the changes made in this area ?So now it is still really easy to use logback or log4j on hibernate in a junit or testng project,
but the internet (and SO) is full of questions (and no clear, updated answer) about how to tune it when packaged in a war.
I need it, but more than that I really think it's needed by lot of people and may be, should find a place in the documentation or in the sample projects delivered with the distribution because one should not waste time on something that dumb.
Thanks for your help.