Sha256: 0e5f12b27c5b82bcfab7ef4e351038eeb88078bd8546043572bd9800f6b796ba

Contents?: true

Size: 334 Bytes

Versions: 8

Compression:

Stored size: 334 Bytes

Contents

require 'logger'

$logger = Logger.new(STDOUT)

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

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

$logger.level = logger_level

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
percheron-0.7.16 lib/percheron/logger.rb
percheron-0.7.15 lib/percheron/logger.rb
percheron-0.7.14 lib/percheron/logger.rb
percheron-0.7.13 lib/percheron/logger.rb
percheron-0.7.12 lib/percheron/logger.rb
percheron-0.7.11 lib/percheron/logger.rb
percheron-0.7.10 lib/percheron/logger.rb
percheron-0.7.9 lib/percheron/logger.rb