lib/semantic_logger/subscriber.rb in semantic_logger-3.4.1 vs lib/semantic_logger/subscriber.rb in semantic_logger-4.0.0.beta1

- old
+ new

@@ -97,13 +97,13 @@ # - If none of the above apply, then the supplied block is returned as the formatter. # - Otherwise an instance of the default formatter is returned. def extract_formatter(formatter, &block) case when formatter.is_a?(Symbol) - SemanticLogger.constantize_symbol(formatter, 'SemanticLogger::Formatters').new + SemanticLogger::Appender.constantize_symbol(formatter, 'SemanticLogger::Formatters').new when formatter.is_a?(Hash) && formatter.size > 0 fmt, options = formatter.first - SemanticLogger.constantize_symbol(fmt.to_sym, 'SemanticLogger::Formatters').new(options) + SemanticLogger::Appender.constantize_symbol(fmt.to_sym, 'SemanticLogger::Formatters').new(options) when formatter.respond_to?(:call) formatter when block block when respond_to?(:call)