Logging from multiple apps/processes to a single log file
        Posted  
        
            by Andrew
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Andrew
        
        
        
        Published on 2010-04-07T21:32:20Z
        Indexed on 
            2010/04/07
            21:53 UTC
        
        
        Read the original article
        Hit count: 374
        
Our app servers (weblogic) all use log4j to log to the same file on a network share. On top of this we have all web apps in a managed server logging errors to a common error.log. I can't imagine this is a good idea but wanted to hear from some pros. I know that each web app has its own classloader, so any thread synchronization only occurs within the app. So what happens when multiple processes start converging on a single log file? Can we expect interspersed log statements? Performance problems? What about multiple web apps logging to a common log file? The environment is Solaris.
© Stack Overflow or respective owner