[Twisted-Python] Re: syslog logging

Tsai Li Ming mailinglist at ltsai.com
Sat Feb 5 22:19:25 MST 2005


Logging facility?

Default is LOG_USER if you do not specify the facility in syslog.openlog:
openlog(ident[, logopt[, facility]])

Liming

Jp Calderone wrote:
> On Sun, 06 Feb 2005 12:15:06 +0800, Tsai Li Ming <mailinglist at ltsai.com> wrote:
> 
>>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
> 
> 
>   Yes?
> 
>   Jp





More information about the Twisted-Python mailing list