lib/terraspace/logger.rb in terraspace-0.4.4 vs lib/terraspace/logger.rb in terraspace-0.5.0

- old
+ new

@@ -1,8 +1,14 @@ require 'logger' module Terraspace class Logger < ::Logger + def initialize(*args) + super + self.formatter = Formatter.new + self.level = :info + end + def format_message(severity, datetime, progname, msg) line = if @logdev.dev == $stdout || @logdev.dev == $stderr msg # super simple format if stdout else super # use the configured formatter