[Twisted-Python] syslog logging
Hi Looking at twisted/python/syslog.py, there isn't any way to specify the logging facility that can be used: class SyslogObserver: def __init__(self, prefix): syslog.openlog(prefix) I'm using the twistd to start application tac file: twistd -y server.tac --pid /var/run/server.pid -q -o --syslog liming
On Sun, 06 Feb 2005 13:19:25 +0800, Tsai Li Ming <mailinglist@ltsai.com> wrote:
Logging facility?
That's not a question. Are you asking if there is a way to specify the logging facility which is used somehow? If so, the answer is no. Are you interested in this functionality? Perhaps you could provide a patch? If so, please upload it to <http://www.twistedmatrix.com/bugs/>. Jp
I apologize if my initial post wasn't clear enough. let me rephrase: Is there a way to define the target syslog facility when logging to syslog when using twisted? According to the man page of twistd, you can define logging to be piped to syslog. For e.g.: twistd -y server.tac --pid /var/run/server.pid -q -o --syslog Looking at twisted/python/syslog.py, there isn't a way to specify the logging facility that can be used: class SyslogObserver: def __init__(self, prefix): syslog.openlog(prefix) By default, the python syslog module will log to the LOG_USER facility. Liming
participants (3)
-
Itamar Shtull-Trauring
-
Jp Calderone
-
Tsai Li Ming