KEMBAR78
add `%(taskname)s` in `logging` for asyncio · Issue #91513 · python/cpython · GitHub
Skip to content

add %(taskname)s in logging for asyncio #91513

@NewUserHa

Description

@NewUserHa

Using LoggerAdapters or Filters to log the async task name every time is inconvenient.

Could add a %(taskname)s in the https://docs.python.org/3/library/logging.html#logrecord-attributes?
just like the %(threadName)s?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions