Article From:

How does an application start multiple services, and how is the log output of multiple services exported to a log file?

Answer 0:

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.

Answer 1:

Can pass throughAMQP,such asrabbitmq

Link of this Article: Python log problem

Leave a Reply

Your email address will not be published. Required fields are marked *