Sha256: a711a50d49679027a4da0de728403b3d162df6c91a6d4a6725a6469cd3e2c67e

Contents?: true

Size: 219 Bytes

Versions: 12

Compression:

Stored size: 219 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.6.4 lib/wiselinks/logger.rb
wiselinks-0.6.3 lib/wiselinks/logger.rb
wiselinks-0.6.2 lib/wiselinks/logger.rb
wiselinks-0.6.1 lib/wiselinks/logger.rb
wiselinks-0.6.0 lib/wiselinks/logger.rb
wiselinks-0.5.6 lib/wiselinks/logger.rb
wiselinks-0.5.5 lib/wiselinks/logger.rb
wiselinks-0.5.4 lib/wiselinks/logger.rb
wiselinks-0.5.3 lib/wiselinks/logger.rb
wiselinks-0.5.2 lib/wiselinks/logger.rb
wiselinks-0.5.1 lib/wiselinks/logger.rb
wiselinks-0.5.0 lib/wiselinks/logger.rb