Sha256: d02d6d3129b74207164f8f5350f64b004adb333638be8c99548396faf49f3316

Contents?: true

Size: 656 Bytes

Versions: 18

Compression:

Stored size: 656 Bytes

Contents

module Groonga
  class Logger
    class Level
      @@names = {}
      def self.find(name)
        @@names[name]
      end

      attr_reader :name
      def initialize(name, level)
        @@names[name] = self
        @name  = name
        @level = level
      end

      def to_i
        @level
      end

      NONE    = new(:none,    0)
      EMERG   = new(:emerg,   1)
      ALERT   = new(:alert,   2)
      CRIT    = new(:crit,    3)
      ERROR   = new(:error,   4)
      WARNING = new(:warning, 5)
      NOTICE  = new(:notice,  6)
      INFO    = new(:info,    7)
      DEBUG   = new(:debug,   8)
      DUMP    = new(:dump,    9)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rroonga-5.0.4-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.4-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.3-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.3-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.2-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.2-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.1-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.1-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.0-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.0.0-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-4.0.8-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-4.0.8-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-4.0.7-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-4.0.7-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-4.0.6-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-4.0.6-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-4.0.5-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-4.0.5-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb