Hello Rav,
to enable local call-history use:
enable
configure terminal
dial-control-mib retain-timer [minutes]
dial-control-mib max-size [number of entries]
to forward call-details to a syslog-server use:
gw-accounting syslog
With the latter I asume you now generic logging details and steps to configure it.