Sha256: e58a502856133d86cc3d7120b259b256aedf84db51b2b09db196832a460e3b8d

Contents?: true

Size: 444 Bytes

Versions: 6

Compression:

Stored size: 444 Bytes

Contents

module Nexaas
  module Auditor
    module StatisticsTrackers
      class Log < Base

        def initialize(logger, namespace=nil)
          @logger = logger || Nexaas::Auditor.configuration.logger
          @namespace = namespace.to_s
        end

        private

        def send_track(type, full_name, value)
          @logger.info("[#{self.class}] type=#{type} metric=#{full_name} value=#{value}")
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nexaas-auditor-1.1.0 lib/nexaas/auditor/statistics_trackers/log.rb
nexaas-auditor-1.0.4 lib/nexaas/auditor/statistics_trackers/log.rb
nexaas-auditor-1.0.3 lib/nexaas/auditor/statistics_trackers/log.rb
nexaas-auditor-1.0.2 lib/nexaas/auditor/statistics_trackers/log.rb
nexaas-auditor-1.0.1 lib/nexaas/auditor/statistics_trackers/log.rb
nexaas-auditor-1.0.0 lib/nexaas/auditor/statistics_trackers/log.rb