module Asciidoctor::LoggerManager
Attributes
Public Class Methods
Source
# File lib/asciidoctor/logging.rb, line 89 def logger pipe = $stderr memoize_logger @logger ||= (@logger_class.new pipe) end
NOTE subsequent calls to logger access the logger via the logger property directly
Also aliased as: logger
Source
# File lib/asciidoctor/logging.rb, line 95 def logger= new_logger @logger = new_logger || (@logger_class.new $stderr) end
Returns the specified Logger
Private Class Methods
Source
# File lib/asciidoctor/logging.rb, line 101 def memoize_logger class << self alias logger logger # suppresses warning from CRuby attr_reader :logger end end