373
info-center logfile size-quota
Use
info-center logfile size-quota
to set the maximum size for the log file.
Use
undo
info-center logfile size-quota
to restore the default.
Syntax
info-center logfile size-quota
size
undo
info-center logfile size-quota
Default
The maximum size of the log file is 10 MB.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
size:
Specifies the maximum size for the log file, in the range of 1 to 10 MB.
Usage guidelines
The log file has a limited capacity. When the capacity is reached, the system deletes the earliest
messages and writes new messages to the log file.
Examples
# Set the maximum size for the log file to 6 MB.
<Sysname> system-view
[Sysname] info-center logfile size-quota 6
Related commands
info-center logfile enable
info-center logfile directory
Use
info-center logfile directory
to configure the directory where the log file is saved.
Syntax
info-center logfile directory
dir-name
Default
The default log file directory is
flash:/logfile
.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
dir-name
: Specifies a directory by its name, a string of 1 to 511 characters.