class RSpecSystem::Log::Logger

Attributes

io[RW]

Public Class Methods

new(io) click to toggle source
# File lib/rspec-system/log.rb, line 8
def initialize(io)
  @io = io
end

Public Instance Methods

debug(text) click to toggle source
# File lib/rspec-system/log.rb, line 12
def debug(text)
  io << bold(color('Debug: ', :blue)) << text << "\n"
end
error(text) click to toggle source
# File lib/rspec-system/log.rb, line 32
def error(text)
  io << 'Error: ' << text << "\n"
end
fatal(text) click to toggle source
# File lib/rspec-system/log.rb, line 24
def fatal(text)
  io << 'Fatal: ' << text << "\n"
end
info(text) click to toggle source
# File lib/rspec-system/log.rb, line 16
def info(text)
  io << bold('Info: ') << text << "\n"
end
unknown(text) click to toggle source
# File lib/rspec-system/log.rb, line 28
def unknown(text)
  io << 'Unknown: ' << text << "\n"
end
warn(text) click to toggle source
# File lib/rspec-system/log.rb, line 20
def warn(text)
  io << 'Warn: ' << text << "\n"
end