-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
add %(taskname)s in logging for asyncio #91513
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Using
LoggerAdaptersorFiltersto log the async task name every time is inconvenient.Could add a
%(taskname)sin the https://docs.python.org/3/library/logging.html#logrecord-attributes?just like the
%(threadName)s?Thanks.