Title: Adding a syslog.conf reader in syslog
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Ankur.Ankan, jafo, tarek
Priority: normal Keywords:

Created on 2010-12-01 11:32 by tarek, last changed 2019-03-15 23:30 by BreamoreBoy.

Messages (2)
msg122990 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2010-12-01 11:32
The syslog module allows to configure via openlog() the facility.

There's one missing feature though, I'd love to have in a new API: a way to read the syslog configuration, and in particular to know where each facility file is located on the system.


  >>> from syslog import get_config, LOG_AUTH
  >>> get_config(LOG_AUTH)
  {'filename': '/var/log/auth.log', some other stuff}

I am not sure how easy it would be, looking at the syslog C API...
msg220820 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-17 12:58
I'm assuming that this can go into 2.7 and 3.5 if anybody is prepared to work on a patch.
Date User Action Args
2019-03-15 23:30:51BreamoreBoysetnosy: - BreamoreBoy
2014-06-18 09:59:03berker.peksagsetversions: - Python 2.7
2014-06-17 12:58:10BreamoreBoysetnosy: + BreamoreBoy

messages: + msg220820
versions: + Python 2.7, Python 3.5, - Python 3.2, Python 3.3
2013-03-09 13:05:26Ankur.Ankansetnosy: + Ankur.Ankan
2010-12-01 11:32:40tarekcreate