Module: EasyLog4r::NullLogger
- Defined in:
- lib/easy_log4r/null_logger.rb
Overview
Creates a Log4rLogger with no Outputters, or overwrites the default Logger provided by EasyLog4r::EasyLogger, removing it’s Outputters
This enables you to keep your log4r statements in your code without producing any output whatsoever.
Class Method Summary collapse
-
.included(base) ⇒ Object
Included hook which nullifies the default Logger by removing its Outputters.
Class Method Details
.included(base) ⇒ Object
Included hook which nullifies the default Logger by removing its Outputters
10 11 12 |
# File 'lib/easy_log4r/null_logger.rb', line 10 def self.included(base) EasyLog4r::Logger.add_logger(base, EasyLog4r::Logger.get_logger(base, :null)) end |