Sha256: 58adb39a9bfe31630dbc44cc4fbc673d9addb7f5fcf26f6f1c1ea8ceb1211082

Contents?: true

Size: 454 Bytes

Versions: 7

Compression:

Stored size: 454 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'
  begin
    require 'pry-byebug'
    require 'awesome_print'
  rescue LoadError
    $logger.warn 'Debugging gems are not installed'
  end

  logger_level = Logger::DEBUG

  Docker.logger = $logger if ENV['DOCKER_DEBUG'] == 'true'
end

$logger.level = logger_level

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
percheron-0.7.6 lib/percheron/logger.rb
percheron-0.7.5 lib/percheron/logger.rb
percheron-0.7.4 lib/percheron/logger.rb
percheron-0.7.3 lib/percheron/logger.rb
percheron-0.7.2 lib/percheron/logger.rb
percheron-0.7.1 lib/percheron/logger.rb
percheron-0.7.0 lib/percheron/logger.rb