Applicable version: Uniform storage 530, 830 and later versions
The contents of a one-click log collection are determined by /etc/conf.logc/log_collect.xml. The file label of the file
indicates the file to be collected, the name indicates the file name, and the generator indicates the way the log file is generated.
· When the generator is 0, the log file is generated from the source file copy specified by the src parameter.
· When the generator is 1, the log file is generated by the script specified by the src parameter, and the name is
passed as a parameter to the script, and whether the log is successfully collected or not is determined by whether there is a corresponding log.
· When the generator is 2, src indicates a command that can be executed, and the output of the command is
redirected to the file specified by name. Whether the log collection is successful or not is determined by whether there is a corresponding log.
· When the generator is 3, the log file is generated by the script specified by the src parameter, and the name is passed as a parameter to the script. The return value of the script determines whether the log collection is successful or not. A return value of 0
indicates that the collection is successful. The log collection script checks whether the corresponding log is collected. If the log exists, it will be successfully recorded in the result file. If it does not exist, the record will fail. If the return value is 1,
the collection fails. The failure is recorded in the result file; returning 2 means that the log cannot be collected is normal, and will not be recorded in the result file at this time;

.
