Logging messages will be sent to a syslog server host at address 192.168.10.53
Router(config)#logging sysadmin
Logging messages will be sent to a syslog server host named sysadmin
Router(config)#logging trap x
Sets the syslog server logging level to value x, where x is a number between 0 and 7 or a word defining the level. The table that follows provides more details
Router(config)#service timestamps log datetime
Syslog messages will now have a timestamp included
There are eight levels of severity in logging messages, as follows:
0
Emergencies
System is unusable
1
Alerts
Immediate action needed
2
Critical
Critical conditions
3
Errors
Error conditions
4
Warnings
Warning conditions
5
Notifications
Normal but significant conditions
6
Informational
Informational messages (default level)
7
Debugging
Debugging messages
Setting a level means you will get that level and everything below it. Level 6 means you will receive level 6 and 7 messages. Level 4 means you will get levels 4 through 7.