Content-Length: 272809 | pFad | https://github.com/python/cpython/issues/91513

6B Issue · 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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/91513

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy