I am logging to the Rails.logger.info within my job and although i see it within development, i do not see it within production. Info logs from other rails processes show up, but not resque. Anything special about resque and logging within production? thx. -karl
This question came up a couple months ago as well. Mason is correct in that a flush is needed. You can also log to a separate file, as specified on the previous thread: http://librelist.com/browser//resque/2010/5/11/logging-in-production/#3b47083ceb13761526a7116206419071 Damon On Thu, Jul 15, 2010 at 4:05 PM, Karl Baum <karl.baum@gmail.com> wrote: > I am logging to the Rails.logger.info within my job and although i see > it within development, i do not see it within production. Info logs > from other rails processes show up, but not resque. Anything special > about resque and logging within production? > > thx. > > -karl > -- Damon P. Cortesi (@dacort) Founder, CTO: UntitledStartup.com www. tweetstats | tweepsearch | rowfeeder .com
Great. Thanks everyone! On Jul 16, 2010, at 2:24 AM, Damon Cortesi wrote: > This question came up a couple months ago as well. Mason is correct > in that a flush is needed. You can also log to a separate file, as > specified on the previous thread: http://librelist.com/browser//resque/2010/5/11/logging-in-production/#3b47083ceb13761526a7116206419071 > > Damon > > On Thu, Jul 15, 2010 at 4:05 PM, Karl Baum <karl.baum@gmail.com> > wrote: > I am logging to the Rails.logger.info within my job and although i see > it within development, i do not see it within production. Info logs > from other rails processes show up, but not resque. Anything special > about resque and logging within production? > > thx. > > -karl > > > > -- > Damon P. Cortesi (@dacort) > Founder, CTO: UntitledStartup.com > www. tweetstats | tweepsearch | rowfeeder .com
I had a similar problem, but discovered that I was simply forgetting that in production the logging was buffered and my workers simply weren't outputting often enough to flush it. I added a flush after importing logging events, and it worked fine at that point. On Thu, Jul 15, 2010 at 4:05 PM, Karl Baum <karl.baum@gmail.com> wrote: > I am logging to the Rails.logger.info within my job and although i see > it within development, i do not see it within production. Info logs > from other rails processes show up, but not resque. Anything special > about resque and logging within production? > > thx. > > -karl >