Created
May 9, 2017 21:17
-
-
Save CodyKochmann/0e77c85533e11aa4dbdf96cc575ffdc5 to your computer and use it in GitHub Desktop.
using syslog in python on os x or mac os - from https://stackoverflow.com/questions/30125412/how-can-i-log-from-python-to-syslog-with-either-sysloghandler-or-syslog-on-mac-o
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h = logging.handlers.SysLogHandler(address='/var/run/syslog', facility=syslog.LOG_LOCAL1) | |
h = logging.handlers.SysLogHandler(address='/var/run/syslog', facility='local1') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment