rails/rails — pull request #8608 by senny (2012-12-25 19:36:44+00:00)
Title: deprecation warning when BufferedLogger is instantiated

This commit belongs to a previously merged PR #8607

`ActiveSupport::BufferedLogger` is not only subclassed but also instantiated. This patch adds the deprecation warning when a new `BufferedLogger` is instantiated.

I think this should be enough to show the user every use of the `BufferedLogger`. At some point there must be an instantiation or a subclass definition. This is when a deprecation warning will be shown and these are the places that need modification.

I did not add deprecation warnings to every instance method because I think this would pollute the log and would not help to track down the problematic areas.