445
info-center trace-logfile quota
Use info-center trace-logfile quota to set the maximum size for the trace log file.
Use undo info-center trace-logfile quota to restore the default.
Syntax
info-center trace-logfile quota size
undo info-center trace-logfile quota
Default
The maximum size for the trace log file is 1 MB.
Views
System view
Predefined user roles
network-admin
Parameters
size: Sets the maximum size for the trace log file, in MB. The value range is 1 to 10.
Examples
# Set the maximum size to 6 MB for the trace log file.
<Sysname> system-view
[Sysname] info-center trace-logfile quota 6
logfile save
Use logfile save to manually save logs in the log file buffer to the log file.
Syntax
logfile save
Views
Any view
Predefined user roles
network-admin
Usage guidelines
You can specify the directory to save the log file by using the info-center logfile directory
command.
The system clears the log file buffer after saving the buffered logs to the log file automatically or
manually.
If the log file buffer is empty, this command displays a success message event though no logs are
saved to the log file.
Examples
# Manually save logs from the log file buffer to a log file.
<Sysname> logfile save
The contents in the log file buffer have been saved to the file flash:/logfile/logfile.log.