Skip to content
New issue

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

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

Closed
NewUserHa opened this issue Apr 14, 2022 · 0 comments
Closed

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

NewUserHa opened this issue Apr 14, 2022 · 0 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@NewUserHa
Copy link
Contributor

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.

@willingc willingc added the type-feature A feature request or enhancement label Apr 14, 2022
carlbordum added a commit to carlbordum/cpython that referenced this issue May 10, 2022
@erlend-aasland erlend-aasland added the stdlib Python modules in the Lib dir label May 16, 2022
@vsajip vsajip closed this as completed May 26, 2022
@vsajip vsajip moved this to Done in Logging issues 🪵 May 26, 2022
hrnciar added a commit to hrnciar/python-json-logger that referenced this issue Jul 4, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513
hrnciar added a commit to hrnciar/python-json-logger that referenced this issue Jul 4, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513
hrnciar added a commit to hrnciar/python-json-logger that referenced this issue Jul 4, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513
hrnciar added a commit to hrnciar/jupyter_events that referenced this issue Jul 4, 2023
Added taskName attribute to logging module for use with asyncio tasks.
python/cpython#91513
jcapiitao added a commit to jcapiitao/daiquiri that referenced this issue Jul 18, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513 [1]

credits to https://github.com/hrnciar

[1] python/cpython#91513
jcapiitao added a commit to jcapiitao/daiquiri that referenced this issue Jul 18, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513 [1]

credits to https://github.com/hrnciar

[1] python/cpython#91513
jcapiitao added a commit to jcapiitao/daiquiri that referenced this issue Jul 18, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513 [1]

credits to https://github.com/hrnciar

[1] python/cpython#91513
jcapiitao added a commit to jcapiitao/daiquiri that referenced this issue Jul 18, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513 [1]

credits to https://github.com/hrnciar

[1] python/cpython#91513
jcapiitao added a commit to jcapiitao/daiquiri that referenced this issue Jul 18, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513 [1]

credits to https://github.com/hrnciar

[1] python/cpython#91513
jcapiitao added a commit to jcapiitao/daiquiri that referenced this issue Jul 18, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513 [1]

credits to https://github.com/hrnciar

[1] python/cpython#91513
jcapiitao added a commit to jcapiitao/daiquiri that referenced this issue Jul 19, 2023
gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513 [1]

credits to https://github.com/hrnciar

[1] python/cpython#91513
sileht pushed a commit to Mergifyio/daiquiri that referenced this issue Oct 19, 2023
* Add support of Python 3.12

gh-91513: Added taskName attribute to logging module for use with
asyncio tasks.
python/cpython#91513 [1]

credits to https://github.com/hrnciar

[1] python/cpython#91513
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
Development

No branches or pull requests

4 participants