class Nessus::Log

Public Class Methods

break() click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 17
def self.break
  STDERR.puts "\t"
  STDERR.puts ""
end
end() click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 22
def self.end
  STDERR.puts "\n\n"
end
error(msg=nil) click to toggle source

Errors

# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 52
def self.error(msg=nil)
  STDERR.puts "ERROR: ".foreground(:red).bright + "#{msg}"
end
h1(title, msg=nil) click to toggle source

Headers

# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 29
def self.h1(title, msg=nil)
  STDERR.puts "-> #{title}: ".foreground(:green).bright + "#{msg}"
end
h2(title, msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 33
def self.h2(title, msg=nil)
  STDERR.puts "\t#{title}: ".foreground(:blue).bright + "#{msg}"
end
h3(title, msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 37
def self.h3(title, msg=nil)
  STDERR.puts "\t#{title}: " + "#{msg}".foreground(:blue).underline
end
h4(msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 41
def self.h4(msg=nil)
  STDERR.puts "\t\t- #{msg}"
end
h5(title, msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 45
def self.h5(title, msg=nil)
  STDERR.puts "\t\t- #{title}: #{msg}"
end
high(title, msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 76
def self.high(title, msg=nil)
  STDERR.puts "\t#{title}: ".foreground(:red).bright + "#{msg}"
end
info(msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 60
def self.info(msg=nil)
  STDERR.puts "INFO: ".foreground(:green).bright + "#{msg}"
end
informational(title, msg=nil) click to toggle source

Event Severities

# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 67
def self.informational(title, msg=nil)
  STDERR.puts "\t#{title}: ".foreground(:magenta).bright + "#{msg}"
end
it(msg=nil) click to toggle source

Formatting

# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 9
def self.it(msg=nil)
  STDERR.puts "#{msg}"
end
it!(msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 13
def self.it!(msg=nil)
  STDERR.puts "\t#{msg}"
end
low(title, msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 70
def self.low(title, msg=nil)
  STDERR.puts "\t#{title}: ".foreground(:green) + "#{msg}"
end
medium(title, msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 73
def self.medium(title, msg=nil)
  STDERR.puts "\t#{title}: ".foreground(:yellow).bright + "#{msg}"
end
warn(msg=nil) click to toggle source
# File lib/gemcache/ruby-nessus/ruby-nessus/log.rb, line 56
def self.warn(msg=nil)
  STDERR.puts "WARNING: ".foreground(:yellow).bright + "#{msg}"
end