431
Usage guidelines
The specified directory must have been created.
The log file has a .log extension. When the default log file directory runs out of space, use this
command to specify a new log file directory.
This command cannot survive a reboot. (Centralized devices in standalone mode.)
This command cannot survive a reboot or an active/standby switchover. (Distributed devices in
standalone mode.)
This command cannot survive an IRF reboot or a master/subordinate switchover. (Centralized
devices in IRF mode.)
This command cannot survive an IRF reboot or a global active/standby switchover in an IRF fabric.
(Distributed devices in IRF mode.)
Examples
# Create a directory named test under the flash root directory.
<Sysname> mkdir test
Creating directory flash:/test... Done.
# Set the log file directory to flash:/test.
<Sysname> system-view
[Sysname] info-center logfile directory flash:/test
Related commands
info-center logfile enable
info-center logfile enable
Use info-center logfile enable to enable the log file feature.
Use undo info-center logfile enable to disable the log file feature.
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
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 at which the system saves logs from the
log file buffer to the log file.