Module: Upperkut::Logging

Defined in:
lib/upperkut/logging.rb

Defined Under Namespace

Classes: DefaultFormatter

Class Method Summary collapse

Class Method Details

.initialize_loggerObject



25
26
27
28
29
30
# File 'lib/upperkut/logging.rb', line 25

def self.initialize_logger
  logger = Logger.new($stdout)
  logger.level     = Logger::INFO
  logger.formatter = DefaultFormatter.new
  logger
end

.loggerObject



32
33
34
# File 'lib/upperkut/logging.rb', line 32

def self.logger
  @logger ||= initialize_logger
end