-
1. Re: JBoss 7 + Hibernate 4 + Log4j and application logging
jaikiran Sep 29, 2011 7:12 AM (in response to are.tysnes)Are Tysnes wrote:
I can add a handler to route this log to i.e. mylog.log (not possible to change the name of this file for some reason, but I can live with that)
You mean in the admin console? If so, then it's a bug. Please create a JIRA.
-
2. Re: JBoss 7 + Hibernate 4 + Log4j and application logging
jaikiran Sep 29, 2011 7:14 AM (in response to are.tysnes)Are Tysnes wrote:
I want to define the following in my log4j.properties in my application and route the hibernate logging wherever I want i.e.:
Anyone managed to get the hibernate logs controlled by your applications log4j ?
-
3. Re: JBoss 7 + Hibernate 4 + Log4j and application logging
are.tysnes Sep 29, 2011 7:27 AM (in response to jaikiran)A bit puzzled on how to translate that thread to my question.
My application's log statements are logged throug my log4j.properties file to my_application.log. But Hibernate logging is swalloved by JBoss as far I can tell.
I guess the reason for this is Hibernate beeing a part of JBoss. If Hibernate was part of my application I guess everything would be as I'm expecting.
So.. how to give my applications log4j.properties priority over JBoss regarding Hibernate ?