old_contents: import logging
  
  logging.basicConfig(level=logging.INFO, format='[TL] %(message)s')
  
  
  def info(fmt, *args):
      logging.info(fmt, *args)
  
  
  def warning(fmt, *args):
      logging.warning(fmt, *args)
  
new_contents: import logging as _logger
  
  logging = _logger.getLogger('tensorlayer')
  logging.setLevel(_logger.INFO)
  _hander = _logger.StreamHandler()
  formatter = _logger.Formatter('[TL] %(message)s')
  _hander.setFormatter(formatter)
  logging.addHandler(_hander)
  
  
  def info(fmt, *args):
      logging.info(fmt, *args)
  
  
  def warning(fmt, *args):
      logging.warning(fmt, *args)
  
subject: Update _logging.py (#407)