91
undo
info-center logfile enable
Default
The log file feature is enabled.
Views
System view
Predefined user roles
network-admin
Examples
# Enable log output to the log file.
<Sysname> system-view
[Sysname] info-center logfile enable
info-center logfile frequency
Use
info-center logfile frequency
to configure the interval for saving logs to the log file.
Use
undo info-center logfile frequency
to restore the default saving interval.
Syntax
info-center logfile frequency freq-sec
undo info-center logfile frequency
Default
The log file saving interval is 86400 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
freq-sec
: Specifies the interval at which the system saves logs to the log file, in seconds. The value
range is 1 to 86400, and the default is 86400.
Usage guidelines
With this command executed, the system saves logs in the log file buffer to the log file at the log file
saving interval.
Examples
# Set the log file saving interval to 60000 seconds.
<Sysname> system-view
[Sysname] info-center logfile frequency 60000
Related commands
info-center logfile enable
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.