method

local_level=

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: LoggerThreadSafeLevel
local_level=(level) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/logger_thread_safe_level.rb, line 32
    def local_level=(level)
      case level
      when Integer
        self.class.local_levels[local_log_id] = level
      when Symbol
        self.class.local_levels[local_log_id] = Logger::Severity.const_get(level.to_s.upcase)
      when nil
        self.class.local_levels.delete(local_log_id)
      else
        raise ArgumentError, "Invalid log level: #{level.inspect}"
      end
    end
Register or log in to add new notes.