Configuring the minimum severity of messages stored on the local drive using the CLI

Prev Next

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.

Prerequisites
  • Admin access

To configure the minimum severity of log messages stored on the local drive:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. 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
  3. Verify your changes:

    hostname (config) # show logging
       Local logging level:err
       Override for class mgmt-back:       notice
       Override for class mgmt-front:      notice
  4. Save your changes.

    hostname (config) # write memory