Module: Asciidoctor::LoggerManager
- Defined in:
- lib/asciidoctor/logging.rb
Class Attribute Summary collapse
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
86 87 88 |
# File 'lib/asciidoctor/logging.rb', line 86 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
89 90 91 92 |
# File 'lib/asciidoctor/logging.rb', line 89 def logger pipe = $stderr memoize_logger @logger ||= (@logger_class.new pipe) end |
.logger=(new_logger) ⇒ Object
Returns the specified Logger
95 96 97 |
# File 'lib/asciidoctor/logging.rb', line 95 def logger= new_logger @logger = new_logger || (@logger_class.new $stderr) end |