classification
Title: Add ident parameter to SysLogHandler
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.3
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 2011-06-27 14:50 by flub. 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) 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
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