Appear at the top of the search Python logging_ use milliseconds in time format - Stack Overflow Is a little different from what I'm looking for + I've forgotten it several times, so make a note of it.
import logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s.%(msecs)03d %(message)s",
datefmt="%H:%M:%S"
)
Display up to seconds with datefmt and add % (msecs) 03d
in format.