Sha256: 27a0ffb161e0a42e6ac8b71f31976e85396a96c91d1b4a4825283cbb115b6022

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

%w(lograge newrelic_rpm syslogger).each{ |gem| require gem }

module H2ocubeRailsProduction
  class Railtie < Rails::Railtie
    initializer 'h2ocube_rails_production.require_dependency' do |app|
      app.config.log_level = :info
      app.config.logger = Syslogger.new(Rails.env.to_s, Syslog::LOG_PID, Syslog::LOG_LOCAL7)
      app.config.lograge.enabled = true
      app.config.lograge.formatter = Lograge::Formatters::Json.new
      app.config.lograge.custom_options = lambda do |event|
        event.payload[:custom_options] || {}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
h2ocube_rails_production-0.2.1 lib/h2ocube_rails_production.rb