Sha256: 0232133b94a24b1bc3d220de2a0ebf58cfece5e77e6b7d0cd0507cccf8497112
Contents?: true
Size: 463 Bytes
Versions: 13
Compression:
Stored size: 463 Bytes
Contents
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 end line =~ /\n$/ ? line : "#{line}\n" end end end
Version data entries
13 entries across 13 versions & 1 rubygems