1) introduced log4j 2) handled stdout and stderr in experiments