lib/pdd.rb in pdd-0.2.1 vs lib/pdd.rb in pdd-0.2.2

- old
+ new

@@ -38,10 +38,16 @@ class SchemaError < Error end # Get logger. def self.log - @log ||= Logger.new(STDOUT) + unless @log + @log = Logger.new(STDOUT) + @log.formatter = proc { |severity, _, _, msg| + puts "#{severity}: #{msg.dump}" + } + end + @log end class << self attr_writer :log end