Sha256: 64764cb7418f55dfaf5241d94939a13801eff869fd1b4154b9371cc9d3b83a7c

Contents?: true

Size: 386 Bytes

Versions: 3

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

# This Railtie runs some initializers that will set the logger to <tt>Rails#logger</tt>,
# and will initialize the {StatsD#backend} based on the Rails environment.
#
# @see StatsD::Instrument::Environment
class StatsD::Instrument::Railtie < Rails::Railtie
  initializer 'statsd-instrument.use_rails_logger' do
    ::StatsD.logger = Rails.logger
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statsd-instrument-3.0.0 lib/statsd/instrument/railtie.rb
statsd-instrument-3.0.0.pre2 lib/statsd/instrument/railtie.rb
statsd-instrument-3.0.0.pre1 lib/statsd/instrument/railtie.rb