code: def _init_log(level=logging.DEBUG):
      
      log = logging.getLogger(__file__)
      log.setLevel(level)
      handler = logging.StreamHandler(sys.stdout)
      handler.setLevel(level)
      formatter = logging.Formatter('%(asctime)s: %(message)s',
                                    '%Y/%m/%d-%H:%M:%S')
      handler.setFormatter(formatter)
      log.addHandler(handler)
      return log
docs: Initialise the logging object.
      Args:
          level (int): Logging level.
      Returns:
          Logger: Python logging object.