title: How to structure the Logging in this case (python)
body: <p>I was wondering what would be the best way for me to structure my logs in a special situation.</p>
  
  <p>I have a series of python services that use the same python files for communicating (ex. com.py) with the HW. I have logging implemented in this modules and i would like for it to be dependent(associated) with the main service that is calling the modules.</p>
  
  <p>How should i structure the logger logic so that if i have:</p>
  
  <ul>
  <li>main_service_1->module_for_comunication</li>
  </ul>
  
  <p>The logging goes to file <strong>main_serv_1.log</strong></p>
  
  <ul>
  <li>main_service_2->module_for_comunication</li>
  </ul>
  
  <p>The logging goes to file <strong>main_serv_2.log</strong></p>
  
  <p>What would be the best practice in this case without harcoding anything?</p>
  
  <p>Is there a way to know the file which is importing the com.py, so that i am able inside of the com.py, to use this information to adapt the logging  to the caller?</p>