Class: Asciidoctor::NullLogger
- Inherits:
-
Logger
- Object
- Logger
- Asciidoctor::NullLogger
- Defined in:
- lib/asciidoctor/logging.rb
Instance Attribute Summary collapse
- #max_severity ⇒ Object readonly
Instance Method Summary collapse
- #add(severity, message = nil, progname = nil) ⇒ Object
-
#initialize ⇒ NullLogger
constructor
A new instance of NullLogger.
Constructor Details
#initialize ⇒ NullLogger
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_severity ⇒ Object (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, = nil, progname = nil if (severity ||= UNKNOWN) > (@max_severity ||= severity) @max_severity = severity end true end |