code: def formatTime(self, record, datefmt=None):  # noqa
          
          if datefmt:
              s = datetime.datetime.now().strftime(datefmt)
          else:
              t = datetime.datetime.now().strftime(self.default_time_format)
              s = self.default_msec_format % (t, record.msecs)
          return s
docs: Overrides formatTime method to use datetime module instead of time module
          to display time in microseconds. Time module by default does not resolve
          time to microseconds.