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-2.0.0.rc2 lib/propono/logger.rb
propono-2.0.0.rc1 lib/propono/logger.rb
propono-1.7.0 lib/propono/logger.rb
propono-1.6.0 lib/propono/logger.rb
propono-1.5.0 lib/propono/logger.rb
propono-1.4.0 lib/propono/logger.rb
propono-1.3.0 lib/propono/logger.rb
propono-1.2.0 lib/propono/logger.rb
propono-1.1.3 lib/propono/logger.rb
propono-1.1.2 lib/propono/logger.rb
propono-1.1.1 lib/propono/logger.rb
propono-1.1.0 lib/propono/logger.rb
propono-1.0.0 lib/propono/logger.rb
propono-1.0.0.rc3 lib/propono/logger.rb
propono-1.0.0.rc2 lib/propono/logger.rb
propono-1.0.0.rc1 lib/propono/logger.rb
propono-0.11.1 lib/propono/logger.rb
propono-0.11.0 lib/propono/logger.rb
propono-0.10.0 lib/propono/logger.rb
propono-0.9.1 lib/propono/logger.rb