Sha256: 230ad23f13bf0b962b6283e427286dba1dbb5221596556fc7206eeb78da6ac8e

Contents?: true

Size: 273 Bytes

Versions: 8

Compression:

Stored size: 273 Bytes

Contents

class SitemapCheck
  class Logger
    def initialize(stream = $stdout)
      self.stream = stream
      self.mutex = Mutex.new
    end

    def log(message)
      mutex.synchronize { stream.puts message }
    end

    protected

    attr_accessor :stream, :mutex
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sitemap_check-0.1.9 lib/sitemap_check/logger.rb
sitemap_check-0.1.8 lib/sitemap_check/logger.rb
sitemap_check-0.1.7 lib/sitemap_check/logger.rb
sitemap_check-0.1.6 lib/sitemap_check/logger.rb
sitemap_check-0.1.4 lib/sitemap_check/logger.rb
sitemap_check-0.1.3 lib/sitemap_check/logger.rb
sitemap_check-0.1.2 lib/sitemap_check/logger.rb
sitemap_check-0.1.1 lib/sitemap_check/logger.rb