Class: Log4Ruby::NilAppender

Inherits:
Appender show all
Defined in:
lib/log4ruby/appenders/nil_appender.rb

Overview

An appender that does nothing. All logs to it are ignored and just consumed.

Instance Attribute Summary

Attributes inherited from Appender

#formatter

Instance Method Summary collapse

Methods inherited from Appender

#close, #closed?

Constructor Details

#initialize(level, options = {}) ⇒ NilAppender

New NilAppender. Does nothing.

Parameters:

  • level (Log4Ruby::Level)
    • not used.

  • options (Hash) (defaults to: {})
    • not used.



16
17
# File 'lib/log4ruby/appenders/nil_appender.rb', line 16

def initialize(level, options = {})
end

Instance Method Details

#process_log(log) ⇒ Object

Don’t do anything with the log. Just return.



20
21
# File 'lib/log4ruby/appenders/nil_appender.rb', line 20

def process_log(log)
end