hi alex...
if you are asking how to code for loging some info from your device on your remote server, have not you replied it yourself.... i mean this is how it is::
set system syslog host <ip-address> <faclity> <severity level>
faclity -> u have to decide yourself like authorization, interactive comands, change-log or any
severity-> again u have to decide like info, error, any
(Although any any will generate too much of logs, so its better to be specific)....
So isnt it what u askd and replied??? or am i mistaken to get your question????