redefine the log path and app path.