lib/sequenceserver/logger.rb in sequenceserver-1.1.0.beta12 vs lib/sequenceserver/logger.rb in sequenceserver-2.0.0.beta1
- old
+ new
@@ -1,12 +1,12 @@
require 'logger'
module SequenceServer
# Extend stdlib's Logger class for custom initialization and log format.
class Logger < Logger
- def initialize(dev, verbose = false)
+ def initialize(dev, level = INFO)
super dev
- self.level = verbose ? DEBUG : INFO
+ self.level = level
self.formatter = Formatter.new
end
# We change Logging format so that it is consistent with Sinatra's
class Formatter < Formatter