split logging into separate files based on initial process, thanks @ukharley