Command Mode
Privileged EXEC mode
User Guidelines
There are no user guidelines for this command.
Example
The following example clears messages from the internal syslog message logging buffer.
Console# clear logging
Clear logging buffer [y/n] y
3.24.7 logging file
The logging file global configuration command limits syslog messages sent to the logging file based on severity.
To cancel the buffer, use the no form of this command.
23.7.1 Syntax
logging file level
no logging file
§
level — Limits the logging of messages to the buffer to a specified level: emergencies, alerts, critical, errors,
warnings, notifications, informational and debugging.
Default Configuration
The default severity level is errors.
Command Mode
Global Configuration mode
User Guidelines
There are no user guidelines for this command.
Example
The following example limits syslog messages sent to the logging file based on the severity level "alerts".
Console (config)# logging file alerts
3.24.8 clear logging file
The clear logging file privileged EXEC command clears messages from the logging file.
Syntax
clear logging file
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC mode
User Guidelines
There are no user guidelines for this command.
Example
The following example clears messages from the logging file.
Console# clear logging file
Clear Logging File [y/n] y
139