Skip to content

Commit

Permalink
Add formatting for date and time in the default stdout logger
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Dec 30, 2024
1 parent 742e86c commit 8a24328
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions micro_manager/tools/logging_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a24328

Please sign in to comment.