set logging session

Last Updated : Nov 06, 2012 |

Manages message logging for the current console session.

Syntax

set logging session {enable | disable | condition {all | MsgFacility} {none | severity}}

Parameters

Parameter

Description

Possible Values

Default Value

enable

Keyword specifying to enable logging to the console session

disable

Keyword specifying to disable logging to the console session

condition

Keyword specifying to define a filter rule for logging

all

Keyword specifying to apply the filter condition to all MsgFacilities

MsgFacility

Apply the filter condition to a specific MsgFacility

arp, boot, cdr, cli, cna-tp, config, dhcp-relay, dhcpc, dhcps, dialer, dnsc, fan, filesys, ids, iphc, ipsec, isakmp, ospf, policy, ppp, pppoe, proxy-arp, qos, router, rtp-stat, saa, security, snmp, stp, supply, switchfabric, system, tftp, threshold, tracker, usb, usb-modem, vj-comp, vlan, voice, wan

none

Keyword specifying not to log messages to the console session

severity

Only log messages whose severity level is equal to or more severe than the specified level. 0 is the highest severity and 7 the lowest severity.

Use the text value or its numeric equivalent:

emergency (0)

alert (1)

critical (2)

error (3)

warning (4)

notification (5)

informational (6)

debugging (7)

6

User Level

read-write

Context

general

Example

To filter config messages for the session, sending only those config messages of alert severity or greater:

Gxxx-001(super)# set logging session condition config alert