Does anyone have any ideas here???  I no longer have useful Logger
messages.  That's very frustrating.

R

On May 24, 7:18 am, RobR <rob.webina...@gmail.com> wrote:
> Why does my Logger formatting change after I "require
> 'active_record'"?
>
> irb(main):001:0> require 'logger'
> => true
> irb(main):002:0> $logger = Logger::new STDOUT
> => #<Logger:0xb7dd0a38 @formatter=nil,
> @default_formatter=#<Logger::Formatter:0xb7dd0a10
> @datetime_format=nil>, @level=0, @progname=nil,
> @logdev=#<Logger::LogDevice:0xb7dd09e8 @shift_age=nil, @filename=nil,
> @mutex=#<Logger::LogDevice::LogDeviceMutex:0xb7dd09c0
> @mon_waiting_queue=[], @mon_entering_queue=[], @mon_count=0,
> @mon_owner=nil>, @dev=#<IO:0xb7f10574>, @shift_size=nil>>
> irb(main):003:0>
> irb(main):004:0* $logger.info{ "Expected log line style" }
> I, [2009-05-24T06:58:44.599720 #22050]  INFO -- : Expected log line
> style
> => true
> irb(main):005:0>
> irb(main):006:0* require 'active_record'
> => true
> irb(main):007:0> $logger.info{ "Why did AR change my log line
> style?" }
> Why did AR change my log line style?
> => true
> irb(main):008:0>
>
> Furthermore, how does one specify a user defined Logger format style?
> I need to provide my Log lines in a format consistent with our other
> applications.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to