Python logging: use milliseconds in time format - Stack Overflow
https://stackoverflow.com/questions/6290739/python-logging-use-milliseconds-in-time-format
WebJun 9, 2011 · logging.Formatter's formatTime method looks like this: def formatTime (self, record, datefmt=None): ct = self.converter (record.created) if datefmt: s = time.strftime (datefmt, ct) else: t = time.strftime ("%Y-%m-%d %H:%M:%S", ct) s = "%s,%03d" % (t, record.msecs) return s. Notice the comma in "%s,%03d".
DA: 53 PA: 61 MOZ Rank: 29