Sha256: 5207f85c573ea8b86c2d3246773ff37c6d8eb252154c08b5edbdb4198f66c123

Contents?: true

Size: 309 Bytes

Versions: 9

Compression:

Stored size: 309 Bytes

Contents

module Pubsubstub
  module Logging
    def error
      Pubsubstub.logger.error { "[#{self.class.name}] #{yield}" }
    end

    def info
      Pubsubstub.logger.info { "[#{self.class.name}] #{yield}" }
    end

    def debug
      Pubsubstub.logger.debug { "[#{self.class.name}] #{yield}" }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pubsubstub-0.3.0 lib/pubsubstub/logging.rb
pubsubstub-0.2.2 lib/pubsubstub/logging.rb
pubsubstub-0.2.1 lib/pubsubstub/logging.rb
pubsubstub-0.2.0 lib/pubsubstub/logging.rb
pubsubstub-0.1.3 lib/pubsubstub/logging.rb
pubsubstub-0.1.2 lib/pubsubstub/logging.rb
pubsubstub-0.1.1 lib/pubsubstub/logging.rb
pubsubstub-0.1.0 lib/pubsubstub/logging.rb
pubsubstub-0.1.0.beta1 lib/pubsubstub/logging.rb