介绍
官方描述:Although logging is thread-safe, and logging to a single file from multiple threads in a single process is supported,
logging to a single file from multiple processes is not supported, because there is no standard way to serialize access
to a single file across multiple processes in Python. If you need to log to a single file from multiple processes, one
way of doing this is to have all the processes log to a SocketHandler, and have a separate process which implements a
socket server which reads from the socket and logs to file.
LoggerServer使用tornado构建一个高性能的TCP日志服务器来解决此问题。