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

    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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy