This example illustrates how to configure Jobly to send all logger events to a local or remote syslog.
Note that for this to work, your syslog must be configured to accept UDP connections.
/etc/rsyslog.conf and uncomment these lines:
# provides UDP syslog receptionmodule(load="imudp")input(type="imudp" port="514")
Jobly.configure do |config|# Log to local syslog and use the system name `jobly` and tag `demo`config.log = "syslog://jobly:email@example.com:514"config.logger.level = Logger::INFOend
cd examples/syslog# Install additional gem dependenciesbundle install# Start watching the syslogsudo tail -f /var/log/syslog# Start both the server and the workerforeman start# Send jobs from the command line to the APIjobly send Hello