> > I would advocate > > that Rails should use something like the lumberjack gem (http:// > > github.com/bdurand/lumberjack) in place of BufferedLogger. This sort > > of architecture would provide Rails with a standard, supported logging > > interface, and allow for better log formats and a simpler means of > > writing messages to non-file based devices (syslog, mongodb, etc.). > > All of this stuff should be possible by simply providing an > alternative implementation of Logger, no?
Kind of. One thing I found in trying to make it extensible to write to other devices is that I couldn't just write the formatted message as a string to the device. Logging to Syslog requires you to conform to the Syslog conventions. Writing to something like MongoDB is most powerful if you are writing structured data that can be sorted and sifted instead of just strings. That required moving the formatting from the logger to the device. Brian -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en.
