Sha256: 44b6a111b89e2a99c4d86339b6e3498f1d3a606d8062dd8dca12356805e6f39b

Contents?: true

Size: 343 Bytes

Versions: 30

Compression:

Stored size: 343 Bytes

Contents

module Inquisitio
  class Logger

    StdLevels = %W{debug info warn}
    ErrorLevels = %W{error fatal}

    StdLevels.each do |level|
      define_method level do |*args|
        $stdout.puts *args
      end
    end

    ErrorLevels.each do |level|
      define_method level do |*args|
        $stderr.puts *args 
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
inquisitio-0.1.6 lib/inquisitio/logger.rb
inquisitio-0.1.5 lib/inquisitio/logger.rb
inquisitio-0.1.4 lib/inquisitio/logger.rb
inquisitio-0.1.3 lib/inquisitio/logger.rb
inquisitio-0.1.2 lib/inquisitio/logger.rb
inquisitio-0.1.1 lib/inquisitio/logger.rb
inquisitio-0.1.0 lib/inquisitio/logger.rb
inquisitio-0.0.13 lib/inquisitio/logger.rb
inquisitio-0.0.12 lib/inquisitio/logger.rb
inquisitio-0.0.11 lib/inquisitio/logger.rb