completely switched from echoing log events to writing them to file