Methods
- A
- L
- S
Instance Public methods
after_initialize()
Link
level()
Link
local_log_id()
Link
silence(temporary_level = Logger::ERROR)
Link
Silences the logger for the duration of the block.
# File activesupport/lib/active_support/logger_silence.rb, line 27 def silence(temporary_level = Logger::ERROR) if silencer begin old_local_level = local_levels[local_log_id] local_levels[local_log_id] = temporary_level yield self ensure if old_local_level local_levels[local_log_id] = old_local_level else local_levels.delete(local_log_id) end end else yield self end end