Capture Chef::Log warnings and errors in tests