lib/semantic_logger/formatters/json.rb in semantic_logger-4.5.0 vs lib/semantic_logger/formatters/json.rb in semantic_logger-4.6.0.beta1

- old
+ new

@@ -1,13 +1,11 @@ require 'json' module SemanticLogger module Formatters class Json < Raw # Default JSON time format is ISO8601 - def initialize(time_format: :iso_8601, log_host: true, log_application: true, time_key: :timestamp, - precision: PRECISION) - super(time_format: time_format, log_host: log_host, log_application: log_application, time_key: time_key, - precision: precision) + def initialize(time_format: :iso_8601, time_key: :timestamp, **args) + super(time_format: time_format, time_key: time_key, **args) end # Returns log messages in JSON format def call(log, logger) super(log, logger).to_json