class Asciidoctor::Logger

Attributes

max_severity[R]

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/asciidoctor/logging.rb, line 8
def initialize *args
  super
  self.progname = 'asciidoctor'
  self.formatter = BasicFormatter.new
  self.level = WARN
end

Public Instance Methods

add(severity, message = nil, progname = nil) click to toggle source
Calls superclass method
# File lib/asciidoctor/logging.rb, line 15
def add severity, message = nil, progname = nil
  if (severity ||= UNKNOWN) > (@max_severity ||= severity)
    @max_severity = severity
  end
  super
end