title: How to print current file name with logger?
body: <p>I am using the Logger model in Python.
  I want the log to also print the file name from which the logger is called. 
  How could this be done? </p>
  
  <p>This is my current implemation:</p>
  
  <pre><code>class Logger(object):
      def __init__(self, name):
          self.logger = logging.getLogger(name)
          self.logger.setLevel(logging.INFO)
  
          # create the logging file handler
          fh = logging.FileHandler("{}.log".format(name))
  
          formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
          fh.setFormatter(formatter)
  
          # Add handle to logger object
          self.logger.addHandler(fh)
  
      def get_logger(self):
          return self.logger
  </code></pre>