class RubyNessus::Log
Public Class Methods
break()
click to toggle source
# File lib/ruby-nessus/log.rb, line 18 def self.break STDERR.puts "\t" STDERR.puts '' end
end()
click to toggle source
# File lib/ruby-nessus/log.rb, line 23 def self.end STDERR.puts "\n\n" end
error(msg = nil)
click to toggle source
Errors
# File lib/ruby-nessus/log.rb, line 53 def self.error(msg = nil) STDERR.puts Rainbow('ERROR: ').foreground(:red).bright + msg.to_s end
h1(title, msg = nil)
click to toggle source
Headers
# File lib/ruby-nessus/log.rb, line 30 def self.h1(title, msg = nil) STDERR.puts Rainbow("-> #{title}: ").foreground(:green).bright + msg.to_s end
h2(title, msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 34 def self.h2(title, msg = nil) STDERR.puts Rainbow("\t#{title}: ").foreground(:blue).bright + msg.to_s end
h3(title, msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 38 def self.h3(title, msg = nil) STDERR.puts "\t#{title}: " + Rainbow(msg.to_s).foreground(:blue).underline end
h4(msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 42 def self.h4(msg = nil) STDERR.puts "\t\t- #{msg}" end
h5(title, msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 46 def self.h5(title, msg = nil) STDERR.puts "\t\t- #{title}: #{msg}" end
high(title, msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 80 def self.high(title, msg = nil) STDERR.puts Rainbow("\t#{title}: ").foreground(:red).bright + msg.to_s end
info(msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 61 def self.info(msg = nil) STDERR.puts Rainbow('INFO: ').foreground(:green).bright + msg.to_s end
informational(title, msg = nil)
click to toggle source
Event Severities
# File lib/ruby-nessus/log.rb, line 68 def self.informational(title, msg = nil) STDERR.puts Rainbow("\t#{title}: ").foreground(:magenta).bright + msg.to_s end
it(msg = nil)
click to toggle source
Formatting
# File lib/ruby-nessus/log.rb, line 10 def self.it(msg = nil) STDERR.puts msg.to_s end
it!(msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 14 def self.it!(msg = nil) STDERR.puts "\t#{msg}" end
low(title, msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 72 def self.low(title, msg = nil) STDERR.puts Rainbow("\t#{title}: ").foreground(:green) + msg.to_s end
medium(title, msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 76 def self.medium(title, msg = nil) STDERR.puts Rainbow("\t#{title}: ").foreground(:yellow).bright + msg.to_s end
warn(msg = nil)
click to toggle source
# File lib/ruby-nessus/log.rb, line 57 def self.warn(msg = nil) STDERR.puts Rainbow('WARNING: ').foreground(:yellow).bright + msg.to_s end