add logcmd