Sha256: d6a665c46146bf16d09540435aa782821f0111cc6d23bf4ce09b8edca420a9e9

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

require 'logger'

module RTurk
  class Logger
    class << self
      def logger=(logger_obj)
        @logger = logger_obj
      end

      def logger
        unless @logger
          @logger = ::Logger.new(STDOUT)
          @logger.level = ::Logger::INFO
        end
        @logger
      end
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rturk-2.0.0 lib/rturk/logger.rb