Make logging to the syslog dataset optional

Ticket: #4326