Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging to syslog is not using the correct location on OSX #176

Open
itkovian opened this issue May 20, 2015 · 0 comments
Open

Logging to syslog is not using the correct location on OSX #176

itkovian opened this issue May 20, 2015 · 0 comments

Comments

@itkovian
Copy link
Member

Right now, address = '/dev/log', which works on Linux. However, e.g., OSX requires this to be '/var/run/syslog'.

def logToDevLog(enable=True, name=None, handler=None):
    """Log to syslog through /dev/log"""
    devlog = '/dev/log'
    syslogoptions = {'address': devlog,
                     'facility': _getSysLogFacility()
                     }
    return _logToSomething(logging.handlers.SysLogHandler,
                           syslogoptions, 'logtodevlog', enable=enable, name=name, handler=handler)

Can we either add the address as an option and make '/dev/log' the default or -- if syslog is actually listening on the right port -- just use the default address, ('localhost', 514)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant