228 Monitoring and Logging System Information
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 Table 10-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.
show logging Displays the state of logging and the syslog messages 
stored in the internal buffer.
show logging file View information about the flash (persistent) log file.
clear logging Use to clear messages from the logging buffer.
Command Purpose