Class: SemanticLogger::Formatters::Raw
- Defined in:
- lib/semantic_logger/formatters/raw.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#call(log, logger) ⇒ Object
Returns log messages in Hash format.
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 |