Monitoring and Logging System Information 233Logging Configuration ExamplesThis section contains the following examples:• Configuring Local and Remote Logging• Configuring Email AlertingConfiguring Local and Remote LoggingThis example shows how to enable switch auditing and CLI commandlogging. Log messages with a severity level of Notification (level 5) and aboveare sent to the RAM (buffered) log. Emergency, Critical, and Alert (level 2)log messages are written to the log file on the flash drive. All log messages aredisplayed on the console and sent to a remote syslog server.To configure the switch:1 Enable switch auditing and CLI command logging.console#configureconsole(config)#logging auditconsole(config)#logging cli-command2 Specify where the logs are sent locally and what severity level of message isto be logged. You can specify the severity as the level number, as shown inthe first two commands, or as the keyword, shown in the third command.console(config)#logging buffered 5console(config)#logging file 2console(config)#logging console debugging3 Define the remote log server.console(config)#logging 192.168.2.10console(Config-logging)#description "SyslogServer"console(Config-logging)#level debugconsole(Config-logging)#exitconsole(config)#exit