372
Syntax
info-center logfile enable
undo
info-center logfile enable
Default
The log file feature is enabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Examples
# Enable the output of logs 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 default saving interval is 86400 seconds.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
freq-sec
: Specifies the interval (in seconds) at which the system saves logs to the log file. The value
range is 1 to 86400. The default value is 86400.
Usage guidelines
With this command executed, the system saves logs in the log file buffer to the log file at the
specified 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