Sha256: c08f70ae04aa83ee268bda219572a9d8b869f4464a9226a700f539b43718e346

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 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

6 entries across 6 versions & 1 rubygems

Version Path
propono-3.0.0 lib/propono/logger.rb
propono-2.2.1 lib/propono/logger.rb
propono-2.2.0 lib/propono/logger.rb
propono-2.1.0 lib/propono/logger.rb
propono-2.0.0 lib/propono/logger.rb
propono-2.0.0.rc3 lib/propono/logger.rb