Class: SemanticLogger::Formatters::Raw

Inherits:
Base
  • Object
show all
Defined in:
lib/semantic_logger/formatters/raw.rb

Direct Known Subclasses

Json

Instance Attribute Summary

Attributes inherited from Base

#filter, #name

Instance Method Summary collapse

Methods inherited from Base

#fast_tag, #level, #level=, #measure, #payload, #pop_tags, #push_tags, #silence, #tagged, #tags, #with_payload

Instance Method Details

#call(log, logger) ⇒ Object

Returns log messages in Hash format



6
7
8
# File 'lib/semantic_logger/formatters/raw.rb', line 6

def call(log, logger)
  log.to_h(log_host ? logger.host : nil, log_application ? logger.application : nil)
end