lib/semantic_logger/formatters/fluentd.rb in semantic_logger-4.6.1 vs lib/semantic_logger/formatters/fluentd.rb in semantic_logger-4.7.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'json' +require "json" module SemanticLogger module Formatters # Fluentd is similar to SemanticLogger::Formatters::Json but with log levels that are recognized # by kubernetes fluentd. @@ -11,11 +11,11 @@ @need_process_info = need_process_info super(time_format: time_format, time_key: time_key, **args) end def level - hash['severity'] = log.level - hash['severity_index'] = log.level_index + hash["severity"] = log.level + hash["severity_index"] = log.level_index end def process_info # Ignore fields: pid, thread, file and line by default super() if need_process_info