Command Reference Syslog Commands
message that is normal but calls for
attention.
The following example saves the log message in expanded FLASH and sets file name, file size and
log level to syslog.txt, 128K and 6 respectively.
Ruijie(config)# logging file flash:syslog
8.12 logging file numbers
Use this command to set the number of log files written into FLASH. Use the no form of this
command to restore the default setting.
logging file numbers numbers
Sets the number of log files written into FLASH, in the range from 2 to
32.
Global configuration mode
The system does not delete previously generated log files even if you change this configuration,
Therefore, you need to delete the log files manually to save FLASH size (you can send log files to the
server through TFTP before that). For example, 16 log files are generated by default before you want
to change the number to 2. New logs are overwritten constantly in log files indexed 0 to 1. However,
log files indexed from 2 to 16 remain. You can delete these log files manually as needed.
The following example sets the number of log files written into FLASH to 8.
Ruijie(config)# logging file numbers 8