Class: Asciidoctor::NullLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/asciidoctor/logging.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNullLogger

Returns a new instance of NullLogger.



70
71
72
73
# File 'lib/asciidoctor/logging.rb', line 70

def initialize
  super nil
  self.level = WARN
end

Instance Attribute Details

#max_severityObject (readonly)



68
69
70
# File 'lib/asciidoctor/logging.rb', line 68

def max_severity
  @max_severity
end

Instance Method Details

#add(severity, message = nil, progname = nil) ⇒ Object



75
76
77
78
79
80
# File 'lib/asciidoctor/logging.rb', line 75

def add severity, message = nil, progname = nil
  if (severity ||= UNKNOWN) > (@max_severity ||= severity)
    @max_severity = severity
  end
  true
end