title: When Tests are Run Logs are displayed in Logfile.log but same is not displayed in reports.html
body: <p>File 1 : BaseClass.py</p>
  <pre><code>import inspect
  
  import logging
  
  class BaseClass:
  
      def getLogger(self):
          loggerName = inspect.stack()[1][3]
          logger = logging.getLogger(loggerName)
          fileHandler = logging.FileHandler('logfile.log')
          formatter = logging.Formatter(&quot;%(asctime)s :%(levelname)s : %(name)s :%(message)s&quot;)
          fileHandler.setFormatter(formatter)
  
          logger.addHandler(fileHandler)  # filehandler object
  
          logger.setLevel(logging.DEBUG)
          return logger
  </code></pre>
  <hr />
  <p>File 2 :</p>
  <pre><code>import pytest
  
  from pytestsDemo.BaseClass import BaseClass
  
  @pytest.mark.usefixtures(&quot;dataLoad&quot;)
  
  class TestExample2(BaseClass):
  
      def test_editProfile(self, dataLoad):
          log = self.getLogger()
          log.info(dataLoad[0])
          log.info(dataLoad[2])
          print(dataLoad[2])
  </code></pre>
  <p>in CMD prompt I Enter :  py.test test_fixtureData.py  --html=report.html -s
  It shows logs in Log file but it should also create a report.html where logs should show.</p>