code: def _logger(self):
          
          log_level = {
              'debug': logging.DEBUG,
              'info': logging.INFO,
              'warning': logging.WARNING,
              'error': logging.ERROR,
              'critical': logging.CRITICAL,
          }
          level = log_level.get(self.args.logging_level.lower())
  
          # Formatter
          tx_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s '
          tx_format += '(%(funcName)s:%(lineno)d)'
          formatter = logging.Formatter(tx_format)
  
          # Logger
          log = logging.getLogger('tcrun')
  
          # # Stream Handler
          # sh = logging.StreamHandler()
          # sh.set_name('sh')
          # sh.setLevel(level)
          # sh.setFormatter(formatter)
          # log.addHandler(sh)
  
          # File Handler
          if not os.access('log', os.W_OK):
              os.makedirs('log')
          logfile = os.path.join('log', 'run.log')
          fh = logging.FileHandler(logfile)
          fh.set_name('fh')
          fh.setLevel(logging.DEBUG)
          fh.setFormatter(formatter)
          log.addHandler(fh)
  
          log.setLevel(level)
          log.info('Logging Level: {}'.format(logging.getLevelName(level)))
          return log
docs: Create logger instance.
  
          Returns:
              logger: An instance of logging