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.

Unsupported provider

classification
Title: Add ident parameter to SysLogHandler
Type: enhancement Stage: resolved
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: flub, python-dev, vinay.sajip
Priority: normal Keywords:

Created on 2011-06-27 12:27 by flub, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg139260 - (view) Author: Floris Bruynooghe (flub) Date: 2011-06-27 12:27
It would be nice if the SysLogHandler also accepted an "ident" parameter in line with the syslog.openlog() function.  This simply prepends the string passed in as "ident" to each log message which currently needs to be implemented with a log filter which modifies the record.
msg139285 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-06-27 14:40
New changeset 6baa90fa2b6d by Vinay Sajip in branch 'default':
Closes #12419: Added ident to SysLogHandler.
http://hg.python.org/cpython/rev/6baa90fa2b6d
msg139288 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2011-06-27 14:42
N.B. I did not add an additional constructor arg - instead, it's a class-level attribute which can be overridden at class or instance level.
msg139290 - (view) Author: Floris Bruynooghe (flub) Date: 2011-06-27 14:50
That was quick, thanks!
History
Date User Action Args
2022-04-11 14:57:19adminsetgithub: 56628
2021-11-04 14:34:22erlendaaslandsetnosy: + vinay.sajip, flub, python-dev, - ahmedsayeed1982

components: + Library (Lib), - Installation
versions: - Python 3.6
2021-11-04 14:33:52erlendaaslandsetmessages: - msg405705
2021-11-04 12:11:42ahmedsayeed1982setversions: + Python 3.6, - Python 3.3
nosy: + ahmedsayeed1982, - vinay.sajip, flub, python-dev

messages: + msg405705

components: + Installation, - Library (Lib)
2011-06-27 14:50:15flubsetmessages: + msg139290
2011-06-27 14:42:10vinay.sajipsetmessages: + msg139288
2011-06-27 14:40:48python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg139285

resolution: fixed
stage: resolved
2011-06-27 13:24:03vinay.sajipsetassignee: vinay.sajip
2011-06-27 12:28:22flubsetnosy: + vinay.sajip
2011-06-27 12:27:57flubcreate