add command information for logging