lib/semantic_logger/appender.rb in semantic_logger-4.7.4 vs lib/semantic_logger/appender.rb in semantic_logger-4.8.0

- old
+ new

@@ -64,21 +64,24 @@ if appender.is_a?(Symbol) SemanticLogger::Utils.constantize_symbol(appender).new(**args) elsif appender.is_a?(Subscriber) appender else - raise(ArgumentError, "Parameter :appender must be either a Symbol or an object derived from SemanticLogger::Subscriber, not: #{appender.inspect}") + raise(ArgumentError, + "Parameter :appender must be either a Symbol or an object derived from SemanticLogger::Subscriber, not: #{appender.inspect}") end elsif metric if metric.is_a?(Symbol) SemanticLogger::Utils.constantize_symbol(metric, "SemanticLogger::Metric").new(**args) elsif metric.is_a?(Subscriber) metric else - raise(ArgumentError, "Parameter :metric must be either a Symbol or an object derived from SemanticLogger::Subscriber, not: #{appender.inspect}") + raise(ArgumentError, + "Parameter :metric must be either a Symbol or an object derived from SemanticLogger::Subscriber, not: #{appender.inspect}") end else - raise(ArgumentError, "To create an appender it must supply one of the following: :io, :file_name, :appender, :metric, or :logger") + raise(ArgumentError, + "To create an appender it must supply one of the following: :io, :file_name, :appender, :metric, or :logger") end end private_class_method :build end