Module: Asciidoctor::LoggerManager
- Defined in:
- lib/asciidoctor/logging.rb
Class Attribute Summary collapse
-
.logger_class ⇒ Object
Returns the value of attribute logger_class.
Class Method Summary collapse
-
.logger(pipe = $stderr) ⇒ Object
NOTE subsequent calls to logger access the logger via the logger property directly.
-
.logger=(new_logger) ⇒ Object
Returns the specified Logger.
Class Attribute Details
.logger_class ⇒ Object
Returns the value of attribute logger_class.
97 98 99 |
# File 'lib/asciidoctor/logging.rb', line 97 def logger_class @logger_class end |
Class Method Details
.logger(pipe = $stderr) ⇒ Object
NOTE subsequent calls to logger access the logger via the logger property directly
100 101 102 103 |
# File 'lib/asciidoctor/logging.rb', line 100 def logger pipe = $stderr memoize_logger @logger ||= (@logger_class.new pipe) end |
.logger=(new_logger) ⇒ Object
Returns the specified Logger
106 107 108 |
# File 'lib/asciidoctor/logging.rb', line 106 def logger= new_logger @logger = new_logger || (@logger_class.new $stderr) end |