Sha256: b20e29285b4914d90f66bba09c13c12a7972c3c9999bde1997e8d6af4232fbde
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
%w(lograge newrelic_rpm syslogger).each{ |gem| require gem } module H2ocubeRailsProduction class Railtie < Rails::Railtie config.before_configuration 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.2 | lib/h2ocube_rails_production.rb |