# Logger with backgrounDrb

**URL:** <https://www.ruby-forum.com/t/logger-with-backgroundrb/187984>\
**Category:** Rails\
**Created:** [May 3, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/logger-with-backgroundrb/187984 "2010-05-03T19:04:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonhy\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6de8d8/32.png) [@Jonhy\_P](https://www.ruby-forum.com/u/Jonhy_P)\
**Post date:** [May 3, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/logger-with-backgroundrb/187984/1 "2010-05-03T19:04:53Z")

</div>

Hello,

I have a backgrounDrb worker calling a ActiveRecord object, ex:

worker:

def process\_campaign  
Campaign.process  
end

campaign.rb:

Campaign \< ActiveRecord::Base  
…  
…

def self.process  
logger.info(“Start processing…”)  
end

If I test in dev env, the line logger.info(“Start processing…”) throws  
the  
correct log info to development.log

However, in production the method process is called bu the log line is  
not  
written to production.log  
If I call the method process from a Controller, the log is written to  
production.log.

Can someone point me something where I should start looking?

Thank you
