Capture log4j output

Add back the capture of log4j but *not* the log4j
dependency itself because it conflicts.