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 ident parameter to SysLogHandler #56628

Closed
flub mannequin opened this issue Jun 27, 2011 · 4 comments
Closed

Add ident parameter to SysLogHandler #56628

flub mannequin opened this issue Jun 27, 2011 · 4 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@flub
Copy link
Mannequin

flub mannequin commented Jun 27, 2011

BPO 12419
Nosy @vsajip

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/vsajip'
closed_at = <Date 2011-06-27.14:40:48.475>
created_at = <Date 2011-06-27.12:27:57.033>
labels = ['type-feature', 'library']
title = 'Add ident parameter to SysLogHandler'
updated_at = <Date 2021-11-04.14:34:22.797>
user = 'https://bugs.python.org/flub'

bugs.python.org fields:

activity = <Date 2021-11-04.14:34:22.797>
actor = 'erlendaasland'
assignee = 'vinay.sajip'
closed = True
closed_date = <Date 2011-06-27.14:40:48.475>
closer = 'python-dev'
components = ['Library (Lib)']
creation = <Date 2011-06-27.12:27:57.033>
creator = 'flub'
dependencies = []
files = []
hgrepos = []
issue_num = 12419
keywords = []
message_count = 4.0
messages = ['139260', '139285', '139288', '139290']
nosy_count = 3.0
nosy_names = ['vinay.sajip', 'flub', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue12419'
versions = []

@flub
Copy link
Mannequin Author

flub mannequin commented Jun 27, 2011

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.

@flub flub mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jun 27, 2011
@vsajip vsajip self-assigned this Jun 27, 2011
@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 27, 2011

New changeset 6baa90fa2b6d by Vinay Sajip in branch 'default':
Closes bpo-12419: Added ident to SysLogHandler.
http://hg.python.org/cpython/rev/6baa90fa2b6d

@python-dev python-dev mannequin closed this as completed Jun 27, 2011
@vsajip
Copy link
Member

vsajip commented Jun 27, 2011

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.

@flub
Copy link
Mannequin Author

flub mannequin commented Jun 27, 2011

That was quick, thanks!

@ahmedsayeed1982 ahmedsayeed1982 mannequin added expert-installation and removed stdlib Python modules in the Lib dir labels Nov 4, 2021
@erlend-aasland erlend-aasland added stdlib Python modules in the Lib dir and removed expert-installation labels Nov 4, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
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
None yet
Development

No branches or pull requests

2 participants