Hello,
you could do something like
---8<---
class MyBusiness
def self.do_it
# ... doing it
log('success')
rescue => exception
log('failure', exception)
end
def self.log(msg, exception=nil)
# ...
end
end
# ...
scheduler.every '10m' do
MyBusiness.do_it
end
--->8---
rufus-scheduler lets you choose any logging library you like.
Look at the "exception in jobs" section of the README too.
I hope this well help, best regards,
--
John Mettraux - http://lambda.io/processi