Sha256: a04e1b472179d4abb337e58bf103fae54e7750d11572d7695d4d204084cc0576

Contents?: true

Size: 340 Bytes

Versions: 27

Compression:

Stored size: 340 Bytes

Contents

module Propono
  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

27 entries across 27 versions & 1 rubygems

Version Path
propono-0.9.0 lib/propono/logger.rb
propono-0.8.2 lib/propono/logger.rb
propono-0.8.0 lib/propono/logger.rb
propono-0.7.0 lib/propono/logger.rb
propono-0.6.3 lib/propono/logger.rb
propono-0.6.1 lib/propono/logger.rb
propono-0.6.0 lib/propono/logger.rb