Method: ActiveSupport::LoggerThreadSafeLevel#log_at

Defined in:
activesupport/lib/active_support/logger_thread_safe_level.rb

#log_at(level) ⇒ Object

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



35
36
37
38
39
40
# File 'activesupport/lib/active_support/logger_thread_safe_level.rb', line 35

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