logging level
Use this command to set the severity level that a message for a specific process must reach before the messages is logged. The severity levels are from 0 to 7 as shown in
Table 32-94. Logging happens for the messages less than or equal to the configured severity level.
Use the no form of this command to disable logging messages.
Note: Default log level is 2 to report Emergency-0, Alert-1 and Critical-2 level events.
Command Syntax
logging level (all|auth|bgp|dvmrp|hostp|hsl|isis|l2mrib|lacp|lagd|ldp|mrib| mstp|ndd|nsm|onm|oam|ospf|ospf6|pim|pon|pservd|ptp|rib|rip|ripng|rmon|rsvp|sflow|vrrp) <0-7>
no logging level (all|auth|bgp|dvmrp|hostp|hsl|isis|l2mrib|lacp|lagd|ldp|mrib| mstp|ndd|nsm|oam|onm|ospf|ospf6|pim|pon|pservd|ptp|rib|rip|ripng|rmon|rsvp|sflow|vrrp)
Parameters
all
All messages
auth
Auth messages
bgp
BGP messages
dvmrp
DVMRP messages
hostp
Hostp messages
hsl
HSL messages
isis
ISIS messages
l2mrib
L2MRIB messages
lacp
LACP messages
lagd
LAGD messages
ldp
LDP messages
mrib
MRIB messages
mstp
MSTP messages
ndd
NDD messages
nsm
NSM messages
oam
OAM messages
onm
ONM messages
ospf
OSPF messages
ospf6
OSPF6 messages
pim
PIM messages
pon
PON messages
pservd
PSERVD messages
ptp
PTP messages
rib
RIB messages
rip
RIP messages
ripng
RIPNG messages
rmon
RMON messages
rsvp
RSVP messages
sflow
Sflow messages
vrrp
VRRP messages
<0-7>
Default
By default, the logging level is 2 (critical).
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
Note: From OcNOS version 4.2, the behavior of the option all for the logging level command has changed for the running-config. Now the command logging level all is displayed in the running-config with its respective level defined by the user instead of one command for each process. If the user have some logging level configured for some specific process in the system when the logging level all command is executed, the level of process that is already configured stays with the level and all other process are configured with the level defined by the all option. This change is necessary to support the option all for logging level in the Netconf also.
#configure terminal
(config)#logging level all 7
(config)#do show running-config logging
logging level ospf 3
logging level hostp 5
logging level all 7
feature rsyslog
(config)#
Last modified date: 10/19/2023