I'm having an issue with logging when I run my Rails app in production
mode:
script/console production
Loading production environment (Rails 2.2.2)
>> Rails.logger
=> #<ActiveSupport::BufferedLogger:0x24e46c8 @auto_flushing=1000,
@log=#<File:log/production.log>, @buffer={#<Thread:0x35700 run>=>["My
logged message\n"]}, @guard=#<Mutex:0x24c0688>, @level=0>
>> Rails.logger.error("hello!")
=> "hello!\n"
>> Rails.logger
=> #<ActiveSupport::BufferedLogger:0x24e46c8 @auto_flushing=1000,
@log=#<File:/Users/tom/Sites/buzzsprout/log/production.log>, @buffer=
{#<Thread:0x35700 run>=>["Mylogged message\n", "hello!\n"]},
@guard=#<Mutex:0x24c0688>, @level=0>
For some reason, messages are not being written to the log when I use
the logger.error or logger.info methods. They appear in the
Rails.logger @buffer?
Anyone have any ideas?
Thanks!
Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---