module EasyLog4r::NullLogger
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.
Public Class Methods
included(base)
click to toggle source
Included hook which nullifies the default Logger
by removing its Outputters
# 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