Method: ActiveSupport::LoggerThreadSafeLevel#log_at

Defined in:
lib/active_support/logger_thread_safe_level.rb

#log_at(level) ⇒ Object

Change the thread-local level for the duration of the given block.



43
44
45
46
47
48
# File 'lib/active_support/logger_thread_safe_level.rb', line 43

def log_at(level)
  old_local_level, self.local_level = local_level, level
  yield
ensure
  self.local_level = old_local_level
end