2.5.3. logging severity

Syntax

logging (buffered|console|file) [severity sev]

no logging (buffered|console|file)

Parameter

buffered

Log messages to RAM.

console

Log messages to console buffer.

file

Log messages to Flash.

severity sev

Specify the minimum severity of the logging messages.The valid range is from 0 to 7, and the number 0 to 7 represents emerg, alert, critical, error, warning, notice, info, and debug individually. The default minimum severity of thelogging severityconfiguration is 5 (emerg,alert, crit, error, warning, notice).

Default

Logging to buffered and console is enabled, and the default minimum severity level is 5 (emerg, alert, crit, error, warning, notice).

Mode

Global Configuration

Usage

To set the minimum severity for the messages that are logged to RAM, console, or Flash, use the command logging severity in the Global Configuration mode. Use the no form of the command to remove the mechanism of logging to RAM, console, or Flash individually.

Example

The following example sets the minimum severity level of logging to RAM and Flash as debugging.

Switch(config)# logging buffered 7
Switch(config)# logging flash 7