code: def makeRecord(self, name, level, fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None):
          
          # See below commented section for a simple example of what the docstring refers to
          if six.PY2:
              rv = logging.LogRecord(name, level, fn, lno, msg, args, exc_info, func)
          else:
              rv = logging.LogRecord(name, level, fn, lno, msg, args, exc_info, func, sinfo)
  
          if extra is None:
              extra = dict()
          extra.update({"pid": os.getpid(), "uid": os.getuid(), "gid": os.getgid(), "ppid": os.getppid()})
  
          for key in extra:
              # if (key in ["message", "asctime"]) or (key in rv.__dict__):
              #     raise KeyError("Attempt to overwrite %r in LogRecord" % key)
              rv.__dict__[key] = extra[key]
          return rv
docs: Override default logger to allow overriding of internal attributes.