class YARD::Logger

def log(severity, message)

Parameters:
  • message (String) -- the message to log
  • severity (DEBUG, INFO, WARN, ERROR, FATAL, UNKNOWN) -- the severity level
def log(severity, message)
  self.level = DEBUG if $DEBUG
  return unless severity >= level
  self.warned = true if severity == WARN
  clear_line
  puts "[#{SEVERITIES[severity].to_s.downcase}]: #{message}"
end