aspose file tools
The moose likes Other Open Source Projects and the fly likes log4j: Is there possibility of the crash with two different wars writing to the same log file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "log4j: Is there possibility of the crash with two different wars writing to the same log file" Watch "log4j: Is there possibility of the crash with two different wars writing to the same log file" New topic
Author

log4j: Is there possibility of the crash with two different wars writing to the same log file

Mika Tapanainen
Ranch Hand

Joined: Jun 11, 2009
Posts: 91
Hello,

I'm working with the application where are two wars inside the ear. Both wars are writing to the same log file.

Is there possiblity that writing to the same log file could crash log4j with heavy load?

If so, could you provide some urls to get extra information and possible handle the problem.

Thanks,

Mika


SCJP, SCJD, SCEA
http://fi.linkedin.com/in/mikatapanainen
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Are you actually experiencing this crashing? What version of log4j? My understanding is that log4j is fairly thread safe and performant.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: log4j: Is there possibility of the crash with two different wars writing to the same log file
 
Similar Threads
Logging + User Experience
Log Issue in OC4j
Configuring log4j
FileNotFoundException Randomly happening
How to create different logs for different applications using LOG4J