title: Log4j vs Logback: concurrent writing to same log?
body: <p>I have several web applications running on the same tomcat.</p>
  
  <p>I have two questions:</p>
  
  <p>1- By searching, I understood that when multiple applications are present, logging into the same file might make some problems. Is that the case for multiple applications running on the same web server? Is that also correct when default stdout output is used?</p>
  
  <p>2- In Logback library there is a prudent mode:</p>
  
  <blockquote>
    <p>In prudent mode, FileAppender will safely write to the specified file, even in the presence of other FileAppender instances running in different JVMs, potentially running on different hosts. The default value for prudent mode is false. </p>
  </blockquote>
  
  <p>I want to know if using Logback is only favorable on multiple JVMs or it is also advantageous for multiple we applications running on the same web server? If not, is it identical to log4j in this aspect?</p>
  
  <p>Thanks</p>