Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j separate file logging problem

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have this problem with regards to log4j. I currently have 3 war files lets say A.war,B.war and C.war that deploy on jboss using log4j. Each war is supposed to log into separate log files. Problem is the logging seem to be mixed up where logging from A.war appears in B.war and so on. My log4j.xml config is as below for the wars.



Is it have to do with jboss server or any other issues ? Thanks.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of Jboss are you using?
 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Jboss 4.2.2 GA. I found that jboss itself have its own log4j config file jboss-log4j.xml. Putting all the log4j config there seems to work as intended. I plan to do this as a workaround. Is this advisable?

Thanks.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pretty much yes , let me know if you have further issues with that
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic