expose log file and production mode