title: How to share common log file among multiple threads in Java
body: <p>Can we share same log file among multiple threads reading and writing into it. </p>
  
  <p>Is it a good idea to dump messages in Deque like concurrent collection first and then periodically dump data from deque to log file.</p>
  
  <p>Please share Any example/ pointers for best performance.</p>