The invention provides a log reporting method, a device, an electronic device and a computer-readable storage medium. The log reporting method can monitor the state of the test event, and when the test event has error information, obtaining a log corresponding to the error information in time, to achieve the goal of rapid response, and further analyzing the target log, Get Key Fields, and according to the key field, comparing the target log with each log of the stored log data in the mass data, when the similarity between the target log and each log of the stored log data is less than or equalto a preset value, Obtaining the category of the target log, thereby pertinently reporting the target log according to the category of the target log, so that the log has a clear classification, anddata federation is realized, which is not only convenient to view, but also conducive to further analysis and processing through the log.