Sha256: 0755ae69941342a4740640831511fc039a1a7ae7d2d27931bb61f6b09dbff620

Contents?: true

Size: 687 Bytes

Versions: 26

Compression:

Stored size: 687 Bytes

Contents

module Groonga
  class Logger
    class Level
      @@names = {}
      class << self
        def find(name)
          @@names[name]
        end
      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

26 entries across 26 versions & 1 rubygems

Version Path
rroonga-7.0.2-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-7.0.2-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.1.3-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.1.3-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.1.0-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.1.0-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.9-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.9-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.7-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.7-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.5-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.5-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.4-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.4-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.2-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.2-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.0-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-6.0.0-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.1.1-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb
rroonga-5.1.1-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/logger/level.rb