logging persistence

Configures the device to save system log messages after a soft reboot.
Syntax
logging persistence
no logging persistence
Command Default

Logging persistence is not configured.

Modes

Global configuration mode

Usage Guidelines

If the syslog buffer size was set to a different value using the command logging buffered, the system log will be cleared after a soft reboot, even if this feature is enabled. This clearing will occur only with a soft reboot immediately following a syslog buffer size change. A soft reboot by itself will not clear the system log. To prevent the system from clearing the system log, leave the number of entries allowed in the syslog buffer unchanged.

Enabling logging persistence does not save syslog messages after a hard reboot. When the device is power-cycled, the syslog messages are cleared.

If logging persistence is enabled and you load a new software image on the device, you must first clear the log if you want to reload the device.

The no form of the command disables the device from saving system log messages after a soft reboot.

Examples

The following example configures the device to save system log messages after a soft reboot.

device(config)# logging persistence