Here are the cli commands I use to set a fortigate unit with a Syslog server, change the server IP and the facility as needed.
config log syslogd setting set status enable set server 192.168.0.10 set port 514 set facility user end
Check that everything was saved correctly.
get log syslogd settings