Command Reference Syslog Commands
Commands
logging console
Sets the severity of logs that are allowed to be
displayed on the console.
Platform
Description
N/A
logging file flash
Use this command to record logs in the extended flash in global configuration mode. Use the no form
of the command to disable the function.
logging file flash: filename [ max-file-size ] [ level ] xx
no logging file
Parameter
Description
Parameter Description
filename
Name of the log file of txt type
max-file-size
Maximal size of the log file in the range from 128 K to 6 M bytes, the
default value is 128K bytes.
level
The severity of logs recorded in the log files. The name of the severity
or the numeral can be used. By default, the severity of logs recorded
in the FLASH is 6. For the details of log severity, see Table-1.
Defaults
Logs cannot be recorded in the extended FLASH.
Command
Mode
Global configuration mode
Usage Guide If no Syslog Server is specified or it is not desired to transfer logs on the network due to the
consideration of security purpose, it is possible to save the logs directly in extended flash.
The extension of the log file is fixed as txt. Any configuration of extension for the filename will be
refused.
You must purchase an additional extended FLASH to record logs on it. If there is no
extended FLASH, the logging file flash command will automatically be hidden, not
allowing you to configure it.
Configuration
Examples
The following example records the logs in the extended flash, with the name trace.txt, file size 128 K
and log severity 6.
Ruijie(config)# logging file flash:trace