| Author |
log4j separate file logging problem
|
michael yue
Ranch Hand
Joined: Nov 20, 2003
Posts: 204
|
|
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
Joined: Jun 24, 2003
Posts: 3268
|
|
|
What version of Jboss are you using?
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
michael yue
Ranch Hand
Joined: Nov 20, 2003
Posts: 204
|
|
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
Joined: Jun 24, 2003
Posts: 3268
|
|
Pretty much yes , let me know if you have further issues with that
|
 |
 |
|
|
subject: log4j separate file logging problem
|
|
|