title: Multiple log files from different modules in python
body: <p>I've three different modules, let's call <code>ModuleA</code>, <code>ModuleB</code> and <code>Common</code>. The <code>Common</code> module contains some helper methods that are required by both <code>ModuleA</code> and <code>ModuleB</code>.</p>
  
  <p>I wanted to have separate log files maintained for each modules, that means, there should be <code>ModuleA.log</code> and <code>ModuleB.log</code>. So in each module I've created a logger object with file handler and with the corresponding file names.</p>
  
  <p>Now the problem is, if I call a method in <code>Common</code> from <code>ModuleA</code>, the log events in <code>Common</code> should be added to <code>ModuleA.log</code> and if I call a method from <code>ModuleB</code>, the log events in <code>Common</code> should be appended to <code>ModuleB.log</code>. For this, currently I'm passing a corresponding <code>logger</code> object as a parameter on the method from <code>Common</code> module which I feel is not a good solution.</p>
  
  <p>Is there any way / patter to handle this scenario?</p>