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



132
133
134
# File 'lib/asciidoctor/logging.rb', line 132

def logger
  LoggerManager.logger
end

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



136
137
138
# File 'lib/asciidoctor/logging.rb', line 136

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