This should work too: logging.Formatter(fmt='%(asctime)s.%(msecs)d',datefmt='% Y-%m-%d,%H:%M:%S') ...
www.google.com.tw