def level=( level )
      @level =
        if level.nil? then level
        else
          lvl = case level
                when String, Symbol; ::Logsly::Logging182::level_num(level)
                when Fixnum; level
                else
                  raise ArgumentError,
                        "level must be a String, Symbol, or Integer"
                end
          if lvl.nil? or lvl < 0 or lvl > ::Logsly::Logging182::LEVELS.length
            raise ArgumentError, "unknown level was given '#{level}'"
          end
          lvl
        end

      define_log_methods(true)
      self.level
    end
def level=( level )
      @level =
        if level.nil? then level
        else
          lvl = case level
                when String, Symbol; ::Logsly::Logging182::level_num(level)
                when Fixnum; level
                else
                  raise ArgumentError,
                        "level must be a String, Symbol, or Integer"
                end
          if lvl.nil? or lvl < 0 or lvl > ::Logsly::Logging182::LEVELS.length
            raise ArgumentError, "unknown level was given '#{level}'"
          end
          lvl
        end

      define_log_methods(true)
      self.level
    end
call-seq:
    level = :all

 Set the level for this logger. The level can be either a +String+, a
 +Symbol+, or a +Fixnum+. An +ArgumentError+ is raised if this is not
 the case.

 There are two special levels -- "all" and "off". The former will
 enable log messages from this logger. The latter will disable all log
 messages from this logger.

 Setting the logger level to +nil+ will cause the parent's logger level
 to be used.

 Example:

    log.level = :debug
    log.level = "INFO"
    log.level = 4
    log.level = 'off'
    log.level = :all

 These produce an +ArgumentError+

    log.level = Object
    log.level = -1
    log.level = 1_000_000_000_000