Module: Asciidoctor::Logging

Included in:
AbstractNode, Cli::Invoker, Converter::Base, Parser, PathResolver, Reader, Table::ParserContext
Defined in:
lib/asciidoctor/logging.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



121
122
123
# File 'lib/asciidoctor/logging.rb', line 121

def logger
  LoggerManager.logger
end

#message_with_context(text, context = {}) ⇒ Object



125
126
127
# File 'lib/asciidoctor/logging.rb', line 125

def message_with_context text, context = {}
  ({ text: text }.merge context).extend Logger::AutoFormattingMessage
end