debug destination

Syntax

debug destination {syslog | file | console | buffer} [severity (emer|crit|alert|err|notice|warning|info|debug)]

no debug destination {syslog | file | console}

Description

Sets the destination for debug logs and the minimum severity level for each destination

The no form of this command unsets the destination for debug logs.

Command context

Manager (#)

Parameters

{syslog | file | console | buffer}

Selects the destination to store debug logs. Required.

syslog

Specifies that the debug logs are stored in the syslog.

file

Specifies that debug logs are stored in file.

console

Specifies that debug logs are stored in console.

buffer

Specifies that debug logs are stored in buffer (default).

severity (emer|crit|alert|err|notice|warning|info|debug)

Selects the minimum severity log level for the destination. If a severity is not provided, the default log level isdebug. Optional.

emer

Specifies storage of debug logs with a severity level of emergency only.

crit

Specifies storage of debug logs with severity level of critical and above.

alert

Specifies storage of debug logs with severity level of alert and above.

err

Specifies storage of debug logs with severity level of error and above.

notice
Specifies storage of debug logs with severity level of notice and above.
warning

Specifies storage of debug logs with severity level of warning and above.

info

Specifies storage of debug logs with severity level of info and above.

debug

Specifies storage of debug logs with severity level of debug (default).

Authority

Administrators or local user group members with execution rights for this command.

Usage

Events that have a severity equal to or higher than the configured severity level are stored in the designated destination. The product defaults to buffer for destination and debug as a severity level.

Examples

switch# debug destination syslog severity alert

switch# debug destination console severity info

switch# debug destination file severity warning

switch# debug destination buffer severity err