This topic describes how to use CLI commands to specify the minimum severity level of log messages stored on the local drive. For a full list of logging commands and the usage and parameters, see the CLI Command Reference.
Admin access
Go to CLI configuration mode:
hostname > enable hostname # configure terminal
To specify the minimum severity level of messages stored on the local disk, use the
logging local <severity>command, where<severity>is one of the following:none—Disables logging.
emerg—System failure.
alert—Immediate action required.
crit—Critical condition.
err—Error condition.
warning—Warning condition.
notice—Normal but significant condition.
info—Informational message.
debug—Debug-level message.
override—Override a log level.
The following example specifies that all log messages of "error" level or higher severity are saved in the log files on the local disk:
hostname (config) # logging local err
Verify your changes:
hostname (config) # show logging Local logging level:err Override for class mgmt-back: notice Override for class mgmt-front: notice Override for class mail: none [ . . . ]Save your changes.
hostname (config) # write memory