Add logging to stats aggregator