#term no mon
#conf t
service timestamps debug datetime msec
service timestamps log datetime msec
service sequence-numbers
no logging console
no logging monitor
logging trap debugging (Setting the desired trap level)
logging buffered errors (Only if you want errors to be saved in buffer)
logging source-interface loopback <some loopback interface if possible> (Or use the primary interface)
logging <IP Address of syslog server>
end