Sha256: e5c63a8d8798739fa2e8f02f6092394d72b68aedeb10e15786b40465b41f1d7a

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

require 'logger'

$logger = Logger.new(STDOUT)

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

# :nocov:
if [ ENV['DEBUG'], ENV['DOCKER_DEBUG'] ].include?('true')
  logger_level = Logger::DEBUG
  Docker.logger = $logger if ENV['DOCKER_DEBUG'] == 'true'
end
# :nocov:

$logger.level = logger_level

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
percheron-0.8.1 lib/percheron/logger.rb
percheron-0.8.0 lib/percheron/logger.rb