set logging file

Last Updated : Feb 14, 2020 |
Manages the logging of system messages to non-volatile memory (NVRAM).
Prolog information

Syntax

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

Parameters

Parameter
Description
Possible Values
Default Value
enable
Keyword specifying to enable logging to the file sink
disable
Keyword specifying to disable logging to the file sink
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, console, 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 file sink
severity
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)

User level

admin

Context

general

Example

To filter VLAN messages sending only those having a severity of critical or greater:
Gxxx-001(super)# set logging file condition vlan critical