info-center logfile size-quota
Use info-center logfile size-quota to set the maximum size for a log file.
Use undo info-center logfile size-quota to restore the default.
info-center logfile size-quota size
undo info-center logfile size-quota
The maximum size of a log file is 5 MB.
Predefined user roles
size: Specifies the maximum size for a log file, in MB. The value range is 1 to 10.
The device supports up to 20 log files. Each log file has a specific capacity. When the capacity is
reached, the system creates a new log file to save new messages. The log files are named as logfile1.log,
logfile2.log, and so on. When the twentieth log file is full or the storage device has no space available,
the system deletes the earliest log file and creates a new one.
# Set the maximum size for a log file to 6 MB.
[Sysname] info-center logfile size-quota 6
info-center logfile enable
info-center logfile directory
Use info-center logfile directory to configure the directory where a log file is saved.
info-center logfile directory dir-name
The log file is saved in the logfile directory under the root directory of the storage device. If the storage
device has been partitioned, the log file is saved in the in the logfile directory on the second partition of
the storage device.