title: Duplicate log output when using Python logging module
body: <p>I am using python logger. The following is my code:</p>
  
  <pre><code>import os
  import time
  import datetime
  import logging
  class Logger :
     def myLogger(self):
        logger = logging.getLogger('ProvisioningPython')
        logger.setLevel(logging.DEBUG)
        now = datetime.datetime.now()
        handler=logging.FileHandler('/root/credentials/Logs/ProvisioningPython'+ now.strftime("%Y-%m-%d") +'.log')
        formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
        handler.setFormatter(formatter)
        logger.addHandler(handler)
        return logger
  </code></pre>
  
  <p>The problem I have is that I get multiple entries in the log file for each <code>logger.info</code> call. How can I solve this?</p>