Class: Loggr::Adapter::NOPAdapter

Inherits:
AbstractAdapter show all
Defined in:
lib/loggr/adapter/nop.rb

Overview

Silences all logging operations, nothing is written at all.

Defined Under Namespace

Classes: NOPLogger

Instance Method Summary collapse

Methods inherited from AbstractAdapter

#mdc

Instance Method Details

#logger(name, options = {}) ⇒ Object

Get single NOPLogger instance


35
36
37
# File 'lib/loggr/adapter/nop.rb', line 35

def logger(name, options = {})
  @logger ||= NOPLogger.new
end