log str cmd.