Class: Ey::Logger::HumanFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/ey/logger/human_formatter.rb

Instance Attribute Summary

Attributes inherited from Formatter

#prefix

Instance Method Summary collapse

Methods inherited from Formatter

for, #initialize, #tag_for, types

Constructor Details

This class inherits a constructor from Ey::Logger::Formatter

Instance Method Details

#call(tag, data) ⇒ Object



5
6
7
8
9
# File 'lib/ey/logger/human_formatter.rb', line 5

def call(tag, data)
  prefixed_tag = tag_for(tag)

  {tag: prefixed_tag}.merge(data).ai
end