added use_syslog config option to make syslog writing configurable