code: def formatTime(self, record, datefmt=None):
          
  
          formatted = super(PalletFormatter, self).formatTime(
              record, datefmt=datefmt)
          return formatted + '.%03dZ' % record.msecs
docs: Format time, including milliseconds.