Log to temp file in unit test