Sha256: 1fd29eeb9f130e8f24a61225e4c50b77432c32b455a1a91a3417cb8288c65915

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

Rails.application.configure do
  config.after_initialize do
    $log_file = File.open("log/#{ENV['RAILS_ENV']}.log", 'a')
    $log_file.sync = true
    Mongo::Logger.logger = Logger.new($log_file)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
log_ranger-0.1.4 lib/log_ranger/log_ranger/templates/config/initializers/mongo.rb
log_ranger-0.1.3 lib/log_ranger/log_ranger/templates/config/initializers/mongo.rb
log_ranger-0.1.2 lib/log_ranger/log_ranger/templates/config/initializers/mongo.rb
log_ranger-0.1.1 lib/log_ranger/log_ranger/templates/config/initializers/mongo.rb