title: Show in terminal strings that are saved in a log.file while running the python application
body: <p>I have a python application in which I have developed a short function to print useful messages in a file</p>
  <pre><code>#To create and config logger
  logging.basicConfig(filename=log_file,
                     format='%(asctime)s%(message)s',
                     filemode='a'
                     )
  #To create the object
  logger=logging.getLogger()
  #To set the threshold of logger to DEBUG
  logger.setLevel(logging.DEBUG)
  def log_messages(text):
      '''
      To be called in other scripts to record
      INFO/WARNING/ERROR messages 
      '''
      logging.info(text)
  
  </code></pre>
  <p>I would like also to show this info while the application is running. How can I do this?</p>