Resque logs are not written


I am using the gem ‘Resque’ for doing the background jobs in my application. After creating the job from controller, no logs are written in the corresponding resque log file, but job is executing successfully.

I have placed the below lines in one of the initialization file.

Resque.logger ="#{Rails.root}/log/resque.log", "w+"))
Resque.logger.formatter =

Please let me know if I went wrong anywhere.