On Fri, Oct 1, 2010 at 6:06 PM, Nate Coraor <nate(a)bx.psu.edu> wrote:
> Any tips?
>
> I figured out Galaxy is using PastScript for this, right?:
>
http://pythonpaste.org/script
Yup.
> Looking at the docstring for logging.handlers.SysLogHandler
> I have tried several variations without success.
The values in the 'args' key under [handler_syslog] should be replaced with
values applicable to your local site. For example, if you wanted to log to
the local syslog, facility 'local6', you'd specify the following:
I got there in the end, the following seems to be working locally:
...
[handler_syslog]
class=logging.handlers.SysLogHandler
level=DEBUG
formatter=default
args=('/dev/log',handlers.SysLogHandler.LOG_SYSLOG)
Interestingly from standalone Python I didn't need to give a facility argument,
handler = logging.handlers.SysLogHandler(address='/dev/log')
Thanks,
Peter