Skip to content

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

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.

Activity

  1. added
    stdlibStandard Library Python modules in the Lib/ directory
    on May 16, 2022
  2. added a commit that references this issue on May 26, 2022
  3. added a commit that references this issue on May 26, 2022
  4. added a commit that references this issue on Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions