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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply 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: 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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: log4j separate file logging problem
 
Similar Threads
wierd logging issue with my app
log4j not logging
not updating new file using DailyRollingFileAppender
Tomcat with Log4j
How to configure a separate log file(Log4j) for a specific application in JBoss?