To configure the name of the log file used to store system messages and the minimum severity level to log, use the logging logfile command. To disable logging to the log file, use the no form of this command.
logging logfile logfile-name severity-level [ size bytes ]
no logging logfile [ logfile-name severity-level [ size bytes ]]]
logfile-name
|
Name of the log file to be used to store system messages.
|
severity-level
|
Number of the desired severity level at which messages should be logged. Messages at or numerically lower than the specified level are logged. Severity levels are as follows:
|
size
bytes
|
(Optional) Specifies a maximum file size. The default file size is 4194304 bytes and can be configured from 4096 to 4194304 bytes.
|
None
Global configuration mode
Release
|
Modification
|
4.0(0)N1(1a)
|
This command was introduced.
|
This example shows how to configure a log file called logfile to store system messages and set its severity level to 4:
Command
|
Description
|
---|---|
show logging logfile
|
Displays the log file.
|