443
Examples
# Set the timestamp format to no-year-date for logs sent to log hosts.
<Sysname> system-view
[Sysname] info-center timestamp loghost no-year-date
Related commands
info-center timestamp
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: Specifies 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 a log file.
Syntax
logfile save
Views
Any view
Predefined user roles
2: System level
Usage guidelines
You can specify the directory to save a log file with the info-center logfile directory command.