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:
|
classclass | Class of log messages for which you want to override the default minimum severity level:
|
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