system logging service severity

Sets the logging level of a microservice.

Syntax

system logging service name severity [ alert | critical | emergency | error | warning | notice | info | debug | trace ]
no system logging service name severity [ alert | critical | emergency | error | warning | notice | info | debug | trace ]

Command Default

Default log level is DEBUG.

Parameters

name
Specifies the name of the service. Example: chassis-mgr, interface-mgr, snmp, api-gw, packet-mgr.
Supports 1-64 characters.
severity [ alert | critical | emergency | error | warning | notice | info | debug | trace ]
Specifies the logging level for the specified service.

Modes

Config mode

Usage Guidelines

The service name must be valid.

The no form of the command puts the log level back to the default log level (DEBUG level).

Examples

The following example configures the severity logging level for chassis-mgr and for interface-mgr.

device# configure terminal
device(config)# system logging service chassis-mgr severity error 
device(config)# system logging service interface-mgr severity trace