Configuration Guide Configuring Syslog
This command is used to synchronize the user input with log output to prevent interrupting the user input.
Configuration Example
 Synchronizing User Input with Log Output
It is required to synchronize the user input with log output as follows:
1. Enable the synchronization function.
 Configure the synchronization function.
Ruijie# configure terminal
Ruijie(config)# line console 0
Ruijie(config-line)# logging synchronous
 Run the show running-config | begin line command to display the configuration.
Ruijie#show running-config | begin line
line con 0
logging synchronous
login local
As shown in the following output, when a user types in "vlan", the state of interface 0/1 changes and the
related log is output. After log output is completed, the log module automatically displays the user input
"vlan" so that the user can continue typing.
Ruijie(config)#vlan
*Aug 20 10:05:19: %LINK-5-CHANGED: Interface GigabitEthernet 0/1, changed state to up
*Aug 20 10:05:19: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet 0/1, changed state
to up
Ruijie(config)#vlan
7.5 Monitoring
Clearing
Running the clear commands may lose vital information and thus interrupt services.