Sha256: 9003ef66c95b92756e063cf5ab6e6c9ab4a7b73a34ab8d25c36ae0ea89fada62
Contents?: true
Size: 277 Bytes
Versions: 3
Compression:
Stored size: 277 Bytes
Contents
require "logger" module LinkshareAPI class Logger attr_reader :logger def self.log(level, message) new.logger.send(level, "[linkshare_api] #{message}") end def initialize @logger = LinkshareAPI.logger || ::Logger.new(STDOUT) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
linkshare_api-0.3.2 | lib/linkshare_api/logger.rb |
linkshare_api-0.3.1 | lib/linkshare_api/logger.rb |
linkshare_api-0.3.0 | lib/linkshare_api/logger.rb |