setup logs in a tmp dir