Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%(taskname)s
logging
Using LoggerAdapters or Filters to log the async task name every time is inconvenient.
LoggerAdapters
Filters
Could add a %(taskname)s in the https://docs.python.org/3/library/logging.html#logrecord-attributes? just like the %(threadName)s?
%(threadName)s
Thanks.
The text was updated successfully, but these errors were encountered:
pythongh-91513: add taskname to logging.LogRecord attributes
taskname
logging.LogRecord
6e7dc2c
gh-91513: Add 'asyncio' taskName to logging LogRecord attributes. (GH…
cc37706
…-93193)
gh-91513: Tidied up a test and did minor refactoring around test file…
efc5d37
…name gener… (GH-93265)
No branches or pull requests
NewUserHa commentedApr 14, 2022
Using
LoggerAdapters
orFilters
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.
The text was updated successfully, but these errors were encountered: