fix logging logic in template

The default attribute for syslog is not a string. Also, no logging should be an option.