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.



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

def initialize
  self.level = WARN
end

Instance Attribute Details

#max_severityObject (readonly)



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

def max_severity
  @max_severity
end

Instance Method Details

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



73
74
75
76
77
78
# File 'lib/asciidoctor/logging.rb', line 73

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