lib/percy/logger.rb in percy-common-1.5.0 vs lib/percy/logger.rb in percy-common-2.0.0

- old
+ new

@@ -1,11 +1,13 @@ require 'logger' -require 'syslog-logger' module Percy def self.logger @logger if defined?(@logger) - @logger ||= Logger::Syslog.new('percy', Syslog::LOG_LOCAL7) + @logger ||= Logger.new(STDOUT) @logger.level = Logger::INFO if ENV['PERCY_ENV'] == 'production' + @logger.formatter = proc do |severity, _datetime, _progname, msg| + "[#{severity}] #{msg}\n" + end @logger end end