Sha256: 4f3fe3364203e749978342a1d3d906aff7bc7adea5fab8a517a8da8a31654a4a

Contents?: true

Size: 353 Bytes

Versions: 12

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module Prefab
  class InternalLogger < StaticLogger
    INTERNAL_PREFIX = 'cloud.prefab.client'

    def initialize(path)
      if path.is_a?(Class)
        path_string = path.name.split('::').last.downcase
      else
        path_string = path
      end
      super("#{INTERNAL_PREFIX}.#{path_string}")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
prefab-cloud-ruby-1.5.1 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.5.0 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.4.5 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.4.4 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.4.3 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.4.2 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.4.1 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.4.0 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.3.2 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.3.1 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.3.0 lib/prefab/internal_logger.rb