Module: SIB

Defined in:
lib/service_image_builder/logger.rb,
lib/service_image_builder/image.rb,
lib/service_image_builder/errors.rb,
lib/service_image_builder/version.rb

Overview

SIB is a module for building Slush Systems docker images

Defined Under Namespace

Classes: Error, Image, ImageError

Constant Summary collapse

VERSION =
'0.1.4'

Class Method Summary collapse

Class Method Details

.logObject

SIB::log serves as a module-level logging method



6
7
8
9
10
11
12
13
# File 'lib/service_image_builder/logger.rb', line 6

def self.log
  @log ||= Logger.new($stdout).tap do |lager|
    lager.formatter = proc do |severity, datetime, progname, msg|
      out = msg.is_a?(String) ? msg : msg.ai(multiline: false)
      "#{datetime} #{severity} #{progname}: #{out}\n"
    end
  end
end