module Bakery::Log

Public Class Methods

debug(msg) click to toggle source

output if debugging

# File lib/bakery/detail/log.rb, line 40
def debug msg
  print 'DEBUG', msg if DEBUG
end
error(msg) click to toggle source

output all the time

# File lib/bakery/detail/log.rb, line 30
def error msg
  print 'ERROR', msg
end
info(msg) click to toggle source

output if verbose

# File lib/bakery/detail/log.rb, line 35
def info msg
  print 'INFO', msg if VERBOSE
end
puts(msg) click to toggle source
# File lib/bakery/detail/log.rb, line 20
def puts msg
  $stderr.puts msg
end
warning(msg) click to toggle source

output if not quiet

# File lib/bakery/detail/log.rb, line 25
def warning msg
  print 'WARNING', msg unless QUIET
end

Private Class Methods

print(tag, msg) click to toggle source