Sha256: 4ceda358b6710ddf4f7d1061dbf2adb9da624d5d92f03f95b58dcba4c0d98eb6
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
# frozen_string_literal: true module StatsD module Instrument # 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 Railtie < Rails::Railtie initializer 'statsd-instrument.use_rails_logger' do ::StatsD.logger = Rails.logger end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
statsd-instrument-3.0.2 | lib/statsd/instrument/railtie.rb |
statsd-instrument-3.0.1 | lib/statsd/instrument/railtie.rb |