Sha256: ad522801fe0f0c1f1b6d6fac991df9803e23c4c6b842e2a34d9037bc6f131d9e

Contents?: true

Size: 314 Bytes

Versions: 2

Compression:

Stored size: 314 Bytes

Contents

require 'logger'

$logger = Logger.new(STDOUT)

logger_level = Logger::INFO
logger_level = Logger::WARN if ENV['QUIET'] == 'true'

if ENV['DEBUG'] == 'true' || ENV['DOCKER_DEBUG'] == 'true'
  logger_level = Logger::DEBUG
  Docker.logger = $logger if ENV['DOCKER_DEBUG'] == 'true'
end

$logger.level = logger_level

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
percheron-0.7.8 lib/percheron/logger.rb
percheron-0.7.7 lib/percheron/logger.rb