File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
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: 93
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: 3274
    
    5

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://aspose.com/file-tools
 
subject: log4j: Is there possibility of the crash with two different wars writing to the same log file
 
Similar Threads
FileNotFoundException Randomly happening
Logging + User Experience
Configuring log4j
How to create different logs for different applications using LOG4J
Log Issue in OC4j