[issue14416] syslog missing constants

2012-03-29 Thread R. David Murray
R. David Murray added the comment: Thanks, Federico, and welcome to the ACKS file. It looks like you are planning to contribute more, so if you haven't already done so could you please submit a contributor agreement? http://www.python.org/psf/contrib/contrib-form/ -- resolution: -

[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc8e61044055 by R David Murray in branch 'default': #14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog. http://hg.python.org/cpython/rev/dc8e61044055 -- ___ Python tracker

[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91bafdf7d7a4 by R David Murray in branch 'default': Merge #14416: add missing LOG_SYSLOG facility to syslog docs. http://hg.python.org/cpython/rev/91bafdf7d7a4 -- ___ Python tracker

[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04c19ac9734a by R David Murray in branch '3.2': #14416: add missing LOG_SYSLOG facility to syslog docs. http://hg.python.org/cpython/rev/04c19ac9734a New changeset c40e5120a9b1 by R David Murray in branch '2.7': #14416: add missing LOG_SYSLOG facil

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: >From what I understand, that defeats the purpose of AUTHPRIV, which is to log >messages that should be logged in a "safer" location than AUTH. That's why I >said it was a special case. In other words, if an application is going to be >logging, say, a pass

[issue14416] syslog missing constants

2012-03-27 Thread Federico Reghenzani
Federico Reghenzani added the comment: We can define AUTHPRIV as AUTH if it doesn't exist in that platform and insert a note in the docs. -- ___ Python tracker ___

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Thinking about this some more, I think that AUTHPRIV is special. You don't want to inadvertently log AUTHPRIV stuff to some other facility. So I think the code patch is good, and we should add a note to the docs that AUTHPRIV may not exist on all platforms

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Close. We either need to mention that LOG_AUTHPRIV is only defined if the platform defines it, or we need to change the implementation so that it is always defined (by mapping it to some other facility if it doesn't exist). I'm of mixed mind about it: the

[issue14416] syslog missing constants

2012-03-27 Thread Federico Reghenzani
Federico Reghenzani added the comment: Done. I'm a newbie, I hope I did it right :) -- Added file: http://bugs.python.org/file25041/syslog_doc.patch ___ Python tracker ___ _

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Frederico: thanks for the patch. Do you want to do the doc patches as well? -- ___ Python tracker ___ ___

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: That's probably reasonable (we have precedents for that in other modules), except that that's not how the older possibly-not-there constants work. For backward compatibility reasons we can't change the older constants, but I don't see any reason we can't do

[issue14416] syslog missing constants

2012-03-27 Thread Federico Reghenzani
Changes by Federico Reghenzani : -- nosy: +Federico.Reghenzani ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14416] syslog missing constants

2012-03-26 Thread Federico Reghenzani
Changes by Federico Reghenzani : -- keywords: +patch Added file: http://bugs.python.org/file25036/mywork.patch ___ Python tracker ___

[issue14416] syslog missing constants

2012-03-26 Thread Edward Yang
Edward Yang added the comment: I misspoke about UUCP. SYSLOG appears to be missing from the documentation. Arguably they should be present if Linux supports them, and missing if they don't (same as LOG_PERROR, and some of the other constants.) Then you can do feature detection Python-side. -

[issue14416] syslog missing constants

2012-03-26 Thread R. David Murray
R. David Murray added the comment: LOG_SYSLOG and LOG_UUCP have been present in Python for a *long* time (since 1998 at least). The other two are not. What fallbacks should be used if they don't exist? (I believe you meant 'facilities', rather than 'priorities'.) -- keywords: +easy

[issue14416] syslog missing constants

2012-03-26 Thread Edward Yang
New submission from Edward Yang : The syslog module is missing constants for a number of logging priorities available on modern Linuxen. In particular, the following options are missing: LOG_ODELAY, LOG_AUTHPRIV, LOG_SYSLOG, LOG_UUCP. -- components: Library (Lib) messages: 156842 nosy: