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



117
118
119
# File 'lib/asciidoctor/logging.rb', line 117

def logger
  LoggerManager.logger
end

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



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

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