Sha256: 3eb343fa089db026218ac0146fea6fe101fc993e2b3ba56820b07259b4ce6bc8

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

module Ougai
  # The features for JSON
  module Formatters::ForJson
    def to_level(severity)
      case severity
      when 'TRACE'
        10
      when 'DEBUG'
        20
      when 'INFO'
        30
      when 'WARN'
        40
      when 'ERROR'
        50
      when 'FATAL'
        60
      else
        70
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ougai-1.6.3 lib/ougai/formatters/for_json.rb