The present invention discloses a log output method, a load balancing device and a computer-readable storage medium. In the present invention, when receiving business traffic, a designated working core in a multi-core CPU performs data plane forwarding
processing on the business traffic, and dispatches the processed business traffic to a back-end
server, and at the same time, during the
processing, the session information corresponding to each type of log generated is recorded to a circular
queue corresponding to the working core, and the designated log core in the multi-core CPU is set to obtain the session information from the circular
queue corresponding to the working core regularly according to the preset frequency corresponding to each type of log during the process of the working core performing the above
processing, and output it as a log file, while realizing that the forwarding of business traffic and log output do not interfere with each other, it also ensures that the log files of various types of logs can be output in a balanced manner, so that various
attack behaviors can be discovered in time when the number of CPU cores is limited, and then corresponding warnings are made to improve the security of protection.