skip to Main Content

Microsecond do not work in Python logger format – Debian

For some reason my Python logger does not want to recognize microseconds format. import logging, io stream = io.StringIO() logger = logging.getLogger("TestLogger") logger.setLevel(logging.INFO) logger.propagate = False log_handler = logging.StreamHandler(stream) log_format = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s',"%Y-%m-%d %H:%M:%S.%f %Z")…

VIEW QUESTION
Back To Top
Search