lib/semantic_logger/formatters/default.rb in semantic_logger-3.4.1 vs lib/semantic_logger/formatters/default.rb in semantic_logger-4.0.0.beta1

- old
+ new

@@ -12,9 +12,16 @@ message << "#{log.level_to_s} [#{log.process_info}]" # Tags message << ' ' << log.tags.collect { |tag| "[#{tag}]" }.join(' ') if log.tags && (log.tags.size > 0) + # Named Tags + if (named_tags = log.named_tags) && !named_tags.empty? + list = [] + named_tags.each_pair { |name, value| list << "[#{name}: #{value}]" } + message << ' ' << list.join(' ') + end + # Duration message << " (#{log.duration_human})" if log.duration # Class / app name message << " #{log.name}"