Sha256: 45d0939726e91d729b74464f87523b3d93dbb1a5bf8f9e0cf58f48880b2ca8e7

Contents?: true

Size: 329 Bytes

Versions: 7

Compression:

Stored size: 329 Bytes

Contents

require 'logger'

module Goodwill
  module Logging
    def logger
      Logging.logger
    end

    class << self
      def level
        @level ||= Logger::WARN
      end

      attr_writer :level

      def logger
        @logger ||= Logger.new(STDOUT)
        @logger.level = level
        @logger
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
goodwill-0.3.0 lib/goodwill/logger.rb
goodwill-0.2.1 lib/goodwill/logger.rb
goodwill-0.2.0 lib/goodwill/logger.rb
goodwill-0.1.4 lib/goodwill/logger.rb
goodwill-0.1.3 lib/goodwill/logger.rb
goodwill-0.1.2 lib/goodwill/logger.rb
goodwill-0.1.0 lib/goodwill/logger.rb