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 38. Syslog severities. 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.

 

  • Default log level is 2 to report Emergency-0, Alert-1 and Critical-2 level events.
  • 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.

Command Syntax

Copy
logging level (all|auth|bgp|dvmrp|hostp|hsl|isis|l2mrib|lacp|lagd|mrib| mstp|ndd|nsm|onm|oam|ospf|ospf6|pim|pon|pservd|ptp|rib|rip|ripng|rmon|sflow|vrrp) <0-7>
no logging level (all|auth|bgp|dvmrp|hostp|hsl|isis|l2mrib|lacp|lagd|mrib| mstp|ndd|nsm|oam|onm|ospf|ospf6|pim|pon|pservd|ptp|rib|rip|ripng|rmon|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

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

sflow

Sflow messages

vrrp

VRRP messages

<0-7>

Severity level as shown in Table 38. Syslog severities.

Default

By default, the logging level is 2 (critical).

Command Mode

Configure mode

Applicability

This command was introduced before OcNOS version 1.3.

Examples

Copy
#configure terminal
(config)#logging level all 7
(config)#logging level ospf 3
(config)#logging level hostp 5
 
(config)#do show running-config logging
logging level ospf 3 
logging level hostp 5 
logging level all 7 
feature rsyslog