logging local

Prev Next

To specify the default minimum severity level of the log messages saved in log files stored on the local disk and to enable severity-level overrides as well as specifying severity-level overrides for certain classes of messages, use the logging local command in configuration mode. Both no logging local and logging local none disable local logging.

Overrides are enabled by default. The [no] local logging override | class command disables all class-specific overrides to the local log level. The logging level is then determined by the global setting, but the overrides remain in the configuration.

Syntax

logging local severity_level

no logging local

logging local override [classclasspriorityseverity_level]

[no] logging local override | classclass

Parameters

severity_level

Default minimum severity level of all log messages saved in the log files on the local disk. The selected severity level includes all messages with a higher severity. The severity levels are:

  • none—Disables logging.

  • emerg—System failure.

  • alert—Immediate action required.

  • crit—Critical condition.

  • err—Error condition.

  • warning—Warning of possible problem.

  • notice—Significant, but normal event (the default).

  • info—Information only.

  • debug—Debugging information.

classclass

Class of log messages for which you want to override the default minimum severity level:

  • audit—User activities that impact the system, such as configuration changes.

  • cms—Local Management System functionality.

  • cmshaCentral Management System High Availability functionality.

  • lms—Local Management System functionality.

  • mgmt-front—System management front-end components.

  • mgmt-back—System management back-end components.

  • siggen—Signature Generation modules and tools.

  • wsapi—Web Services API.

Examples

The following example indicates that error, critical, alert, and emergency messages are saved in the local log files.

hostname (config) # logging local err

The following example re-enables severity-level overrides after all overrides are disabled by a no logging local override command.

hostname (config) # logging local override

User role

Admin