Add timestamp to log output

This commit is contained in:
Ian Renton
2026-08-22 08:07:34 +01:00
parent a20c29cdd1
commit 6f21ac83b7
9 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ if __name__ == "__main__":
root.setLevel(LOG_LEVEL)
handler = logging.StreamHandler(sys.stdout)
handler.setLevel(LOG_LEVEL)
formatter = logging.Formatter("%(levelname)s : %(message)s")
formatter = logging.Formatter("%(asctime)s | %(levelname)7s | %(message)s", "%Y-%m-%d %H:%M:%S")
handler.setFormatter(formatter)
root.handlers.clear()
root.addHandler(handler)