Module: ActiveSupport::LoggerSilence
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Concern
|
|
| Defined in: | activesupport/lib/active_support/logger_silence.rb |
Class Attribute Summary
- .silencer rw
Class Method Summary
Concern - Extended
| class_methods | Define class methods from given block. |
| included | Evaluate given block in context of base class, so that you can write class macros here. |
| prepended | Evaluate given block in context of base class, so that you can write class macros here. |
| append_features, prepend_features | |
Instance Attribute Summary
- #silencer rw
- #silencer=(value) rw
Instance Method Summary
-
#silence(severity = Logger::ERROR)
Silences the logger for the duration of the block.
DSL Calls
included
[ GitHub ]24 25 26
# File 'activesupport/lib/active_support/logger_silence.rb', line 24
included do include ActiveSupport::LoggerThreadSafeLevel end
Class Attribute Details
.silencer (rw)
[ GitHub ]# File 'activesupport/lib/active_support/logger_silence.rb', line 14
attr_accessor :silencer
Instance Attribute Details
#silencer (rw)
[ GitHub ]# File 'activesupport/lib/active_support/logger_silence.rb', line 28
def silencer = LoggerSilence.silencer
#silencer=(value) (rw)
[ GitHub ]# File 'activesupport/lib/active_support/logger_silence.rb', line 30
def silencer=(value) LoggerSilence.silencer = value end
Instance Method Details
#silence(severity = Logger::ERROR)
Silences the logger for the duration of the block.