Created
February 8, 2010 08:09
-
-
Save davidyang/297978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def initialize_framework_logging | |
for framework in ([ :active_record, :action_controller, :action_mailer ] & configuration.frameworks) | |
framework.to_s.camelize.constantize.const_get("Base").logger ||= Rails.logger | |
end | |
ActiveSupport::Dependencies.logger ||= Rails.logger | |
Rails.cache.logger ||= Rails.logger | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment