How does an application start multiple services, and how is the log output of multiple services exported to a log file?
Logs generated by each service can be viewed as multiple producer, that is, producer. The requirement of writing a log file is regarded as consumer, that is, the consumer. Then Queue is called, and each log information generated by each application is placed in queue, consumer from Q.Ueue reads log information and writes log files.
Can pass through