Class: NpSearch::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/npsearch/logger.rb

Overview

Extend stdlib’s Logger class for custom initialization

Instance Method Summary collapse

Constructor Details

#initialize(dev, verbose = false) ⇒ Logger

Returns a new instance of Logger.



6
7
8
9
# File 'lib/npsearch/logger.rb', line 6

def initialize(dev, verbose = false)
  super dev
  self.level = verbose ? DEBUG : INFO
end