Add three decimal places of sub-second resolution to root logger timestamps (#74518)
This commit is contained in:
parent
d203cb0658
commit
ae295f1bf5
1 changed files with 3 additions and 1 deletions
|
@ -285,7 +285,9 @@ def async_enable_logging(
|
|||
|
||||
This method must be run in the event loop.
|
||||
"""
|
||||
fmt = "%(asctime)s %(levelname)s (%(threadName)s) [%(name)s] %(message)s"
|
||||
fmt = (
|
||||
"%(asctime)s.%(msecs)03d %(levelname)s (%(threadName)s) [%(name)s] %(message)s"
|
||||
)
|
||||
datefmt = "%Y-%m-%d %H:%M:%S"
|
||||
|
||||
if not log_no_color:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue