Class: NpSearch::Logger
- Inherits:
-
Logger
- Object
- Logger
- NpSearch::Logger
- Defined in:
- lib/npsearch/logger.rb
Overview
Extend stdlib’s Logger class for custom initialization
Instance Method Summary collapse
-
#initialize(dev, verbose = false) ⇒ Logger
constructor
A new instance of Logger.
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 |