test/layouts/test_json.rb in logging-2.2.2 vs test/layouts/test_json.rb in logging-2.3.0
- old
+ new
@@ -76,10 +76,10 @@
def test_items_all
event = Logging::LogEvent.new('TestLogger', @levels['info'],
'log message', false)
event.file = 'test_file.rb'
event.line = 123
- event.method = 'method_name'
+ event.method_name = 'method_name'
@layout.items = %w[logger]
assert_equal %Q[{"logger":"TestLogger"}\n], @layout.format(event)
@layout.items = %w[file]