Router(config)#logging on | Enables logging to all supported destinations |
Router(config)#logging 192.168.10.53 | 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 |
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.