set log by env, and update packages