better logging of generated file