This feature could be configured under the archive configuration mode with the log config command and notify syslog to enable
the sending of notifications of configuration changes to your remote syslog.
The configuration could be the next
logging enable 50
If you need to log all the commands and not only the config commands then the following configuration should be
executed on the router.
event manager applet CLIaccounting
event cli pattern ".*" sync no skip no
action 1.0 syslog priority informational msg "$_cli_msg"
set 2.0 _exit_status
Read the next link for more details
Hope that helps!