code: def get_logger(name):
      
      if not hasattr(logging.Logger, 'trace'):
          logging.addLevelName(TRACE_LEVEL, 'TRACE')
  
          def trace(self, message, *args, **kwargs):
              if self.isEnabledFor(TRACE_LEVEL):
                  # Yes, logger takes its '*args' as 'args'.
                  self._log(TRACE_LEVEL, message, args, **kwargs)
  
          logging.Logger.trace = trace
  
      log = logging.getLogger(name)
      if not log.handlers:
          log.addHandler(logging.NullHandler())
      return log
docs: Return logger with null handler added if needed.