This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Implement `logging.LogRecord.__repr__`
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: cool-RR, python-dev, vinay.sajip
Priority: normal Keywords:

Created on 2014-07-14 11:44 by cool-RR, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg223045 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2014-07-14 18:19
LogRecord has a lot of attributes. You can normally show what you want using a Formatter. I could implement something that just shows name and levelName. How does that sound?
msg223046 - (view) Author: Ram Rachum (cool-RR) * Date: 2014-07-14 18:32
Sounds good.
msg233520 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-01-06 11:19
New changeset 390ffd39631b by Vinay Sajip in branch 'default':
Closes #21980: Added a __repr__ for LogRecord.
https://hg.python.org/cpython/rev/390ffd39631b
History
Date User Action Args
2022-04-11 14:58:05adminsetgithub: 66179
2015-01-06 11:19:58python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg233520

resolution: fixed
stage: resolved
2014-07-14 18:32:16cool-RRsetmessages: + msg223046
2014-07-14 18:19:06vinay.sajipsetmessages: + msg223045
2014-07-14 15:25:26berker.peksagsetnosy: + vinay.sajip
2014-07-14 11:44:45cool-RRcreate