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



119
120
121
# File 'lib/asciidoctor/logging.rb', line 119

def logger
  LoggerManager.logger
end

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



123
124
125
# File 'lib/asciidoctor/logging.rb', line 123

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