log the sudo cmd in logger in dev.