Sha256: de29a2103192e9209cfc2b024b45d9bb96115de1d0c9bcf635c6992d00f6b5b2

Contents?: true

Size: 217 Bytes

Versions: 12

Compression:

Stored size: 217 Bytes

Contents

module Wiselinks
  module Logger    
    def logger
      @logger ||= Wiselinks.options[:logger] || ::Logger.new(STDOUT)
    end

    def log(message)
      self.logger.info("[wiselinks] #{message}")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wiselinks-0.4.2 lib/wiselinks/logger.rb
wiselinks-0.4.1 lib/wiselinks/logger.rb
wiselinks-0.4.0 lib/wiselinks/logger.rb
wiselinks-0.3.9 lib/wiselinks/logger.rb
wiselinks-0.3.8 lib/wiselinks/logger.rb
wiselinks-0.3.7 lib/wiselinks/logger.rb
wiselinks-0.3.6 lib/wiselinks/logger.rb
wiselinks-0.3.5 lib/wiselinks/logger.rb
wiselinks-0.3.4 lib/wiselinks/logger.rb
wiselinks-0.3.3 lib/wiselinks/logger.rb
wiselinks-0.3.2 lib/wiselinks/logger.rb
wiselinks-0.3.0 lib/wiselinks/logger.rb