Sha256: b2a4ceec67cedfa4e4df42dc0a6fdf09bfda64ede24cddaf473aa10b2e07510b
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
require 'logger' module Percy def self.logger return @logger if defined?(@logger) @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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
percy-common-3.0.2 | lib/percy/logger.rb |