test/appender/file_test.rb in semantic_logger-4.2.1 vs test/appender/file_test.rb in semantic_logger-4.2.2
- old
+ new
@@ -94,10 +94,10 @@
message << ' -- ' << log.payload.inspect if log.payload
message << ' -- ' << "#{log.exception.class}: #{log.exception.message}\n#{(log.exception.backtrace || []).join("\n")}" if log.exception
duration_str = log.duration ? " (#{format('%.1f', log.duration)}ms)" : ''
- "#{log.formatted_time} #{log.level.to_s.upcase} [#{$PROCESS_ID}:#{log.thread_name}] #{tags}#{log.name} -- #{message}#{duration_str}"
+ "#{log.formatted_time} #{log.level.to_s.upcase} [#{$$}:#{log.thread_name}] #{tags}#{log.name} -- #{message}#{duration_str}"
end
end
it 'format using formatter' do
@appender.debug