Monitoring and Logging System Information 269
Configuring Local Logging

Beginning in Privileged EXEC mode, use the following commands to

configure the type of messages that are logged and where the messages are

logged locally.

Command Purpose
configure Enter Global Configuration mode.
logging on Globally enables logging.
logging audit Enable switch auditing.
logging cli-command Enable CLI command logging
logging web-sessions Enable logging of the switch management Web page visits.
logging snmp Enable logging of SNMP set commands.
terminal monitor Enable display of system messages on the console for
Telnet/SSH sessions.
logging
{buffered|console| file}
[
severity
]
Enable logging to the specified file. Optionally, you can
define a logging discriminator to help filter log messages
and set the severity of the messages to log.
buffered
— Enables logging to the RAM file (cache). If
the switch resets, the buffered logs are cleared.
console
— Enables logging to the screen when you are
connected to the CLI through the console port.
file
— Enables logging to the startup and operational log
files on the flash.
discriminator
disc-name
— (Optional) Include a
message discriminator to help filter log messages. The
disc-name
can contain up to eight alphanumeric
characters. Spaces are not permitted.
severity
— (Optional) Enter the number or name of the
desired severity level. For information about severity
levels, see Table11-1.
logging facility

facility-

type
Set the facility for logging messages. Permitted

facility-

type
values are local0, local1, local2, local3, local4, local5,
local 6, local7
CTRL + Z Exit to Privileged EXEC mode.