From 8a24328cbe30d107648a40589fd06c55e8b0c553 Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Mon, 30 Dec 2024 13:27:43 +0100 Subject: [PATCH] Add formatting for date and time in the default stdout logger --- micro_manager/tools/logging_wrapper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/micro_manager/tools/logging_wrapper.py b/micro_manager/tools/logging_wrapper.py index edfee59..3d5f865 100644 --- a/micro_manager/tools/logging_wrapper.py +++ b/micro_manager/tools/logging_wrapper.py @@ -44,9 +44,10 @@ def __init__( formatter = logging.Formatter("%(message)s") else: formatter = logging.Formatter( - "[" + "(" + str(self._rank) - + "] %(asctime)s - %(name)s - %(levelname)s - %(message)s" + + ") %(asctime)s - %(name)s - %(levelname)s - %(message)s", + datefmt="%m/%d/%Y %I:%M:%S %p", ) handler.setFormatter(formatter)