Class: Minato::Utils::LogFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Minato::Utils::LogFormatter
- Defined in:
- lib/minato/utils/logger.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, timestamp, _program_name, data) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/minato/utils/logger.rb', line 8 def call(severity, , _program_name, data) json_str = { type: severity, time: , message: data.delete(:message) }.merge(data).to_json "#{json_str}\r\n" end |