Hello friend!
I understand two meanings here. The first is to record the information entered by the user on the CLI command line in the log file. The session log function of a single connection is enabled by default. After the global session log function is enabled, information such as the input and screen output of all connections on the device is recorded in the log file. If session logs do not need to be generated for some connections, you can run the terminal session-log disable command to disable the session log function for these connections. You can refer to the link https://support.huawei.com/hedex/hdx.do?docid=EDOC1100169782&id=EN-US_TASK_0172359727&lang=en
The second is do you need to output configuration information to the log server? When a device is working, the system records the operating status of the device in real time and generates certain information. If the UDP port number, information recording device, and information severity are specified for a Syslog server of a specified IP address, information is sent to the Syslog for query. This allows the network administrator to monitor the device operation and diagnose network faults. You can refer to the link https://support.huawei.com/hedex/hdx.do?docid=EDOC1100169782&id=EN-US_TASK_0172361188&lang=en
Hope to help you!