Sha256: f6cca2fcfd970dce57ddd8a56428b70c0207651adfb5211531081fb33d8f008d

Contents?: true

Size: 271 Bytes

Versions: 84

Compression:

Stored size: 271 Bytes

Contents

module Pheme
  def self.log(method, text)
    @logger ||= ActiveSupport::TaggedLogging.new(configuration.logger)
    @tag ||= "pheme_#{SecureRandom.uuid}"
    @logger.tagged(@tag) { @logger.send(method, text) }
  end

  def self.logger
    configuration.logger
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
pheme-6.0.0 lib/pheme/logger.rb
pheme-5.3.4 lib/pheme/logger.rb
pheme-5.3.3 lib/pheme/logger.rb
pheme-5.3.0 lib/pheme/logger.rb
pheme-5.2.16 lib/pheme/logger.rb
pheme-5.2.15 lib/pheme/logger.rb
pheme-5.2.14 lib/pheme/logger.rb
pheme-5.2.13 lib/pheme/logger.rb
pheme-5.2.12 lib/pheme/logger.rb
pheme-5.2.11 lib/pheme/logger.rb
pheme-5.2.10 lib/pheme/logger.rb
pheme-5.2.9 lib/pheme/logger.rb
pheme-5.2.8 lib/pheme/logger.rb
pheme-5.2.7 lib/pheme/logger.rb
pheme-5.2.6 lib/pheme/logger.rb
pheme-5.2.5 lib/pheme/logger.rb
pheme-5.2.4 lib/pheme/logger.rb
pheme-5.2.3 lib/pheme/logger.rb
pheme-5.2.2 lib/pheme/logger.rb
pheme-5.2.1 lib/pheme/logger.rb