How to check if something was written to /dev/log?

I'm writing application which is intended to log to syslog. In documentation for SysLogHandler (python, logging module) it is said that for UNIX systems it's usually '/dev/log'. I need to test if something was written there, how can one read the content of '/dev/log'?

I have Ubuntu 14.04


Solution 1:

I think handler = SysLogHandler(address='/dev/log')

might be what you are missing. you should find output in /var/log/syslog.

Source: https://stackoverflow.com/questions/3968669/how-to-configure-logging-to-syslog-in-python