Enable history for configuration commands in cisco ios.
!
archive
log config
record rc
logging enable
logging persistent auto
notify syslog contenttype plaintext
hidekeys
!
You can view the log using show archive log config …
This config also logs commands entered into the syslog.