Changing log handler from syslog to logging