Want my daemons to have their own logger instance

I have a daemon named “sketcher” and I want everything related to the
“sketcher” program to go to “sketcher.log”

I’ve tried putting
logger = Logger.new(File.join("#{RAILS_ROOT}/log", “sketcher.log”)

in the top method of the daemon, but this only succeeds in getting
messages from that same class into my logger. Most of the log
messages from ActiveRecord and other classes end up in
development.log, as usual.

Is there an easy way to redirect all output from each of my daemons
into their own log files?

Thanks -

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs