generate log.txt only in prod profile