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

1

1 Answer

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

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

Source:

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like