Initialize log before first use in cmd_proc()