Skip to content

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

Closed
@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

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions