lib/heavylog/railtie.rb in heavylog-0.0.5 vs lib/heavylog/railtie.rb in heavylog-0.0.6

- old
+ new

@@ -2,9 +2,10 @@ module Heavylog class Railtie < Rails::Railtie config.heavylog = Heavylog::OrderedOptions.new config.heavylog.enabled = false config.heavylog.path = 'log/heavylog.log' + config.heavylog.message_limit = 1024 * 1024 * 50 # 50MB initializer "heavylog.insert_middleware" do |app| app.config.middleware.insert_before Rails::Rack::Logger, Heavylog::Middleware end