aspose file tools*
The moose likes Other Open Source Projects and the fly likes log4j separate file logging problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j separate file logging problem" Watch "log4j separate file logging problem" New topic
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: 3274
    
    5

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: 3274
    
    5

Pretty much yes , let me know if you have further issues with that
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j separate file logging problem