Class: SequenceServer::Logger

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

Overview

Extend stdlib's Logger class for custom initialization and log format.

Defined Under Namespace

Classes: Formatter

Instance Method Summary collapse

Constructor Details

#initialize(dev, verbose = false) ⇒ Logger


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

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