The application discloses a method for locating
software problem
source code position through a log, and
electronic equipment, comprising the following steps: acquiring a log output point of the target
software, creating an index
record for the log output point, detecting
source code position information of each log output point, analyzing log content of each log output point based on the
source code position information, extracting and generating feature values corresponding to the log content, constructing a log index
library, receiving an actual running log, extracting feature values of the log, and performing matching in the log index
library to determine the source code position corresponding to the log output point, and locating to a specific position of the source code according to a matching result. The application is beneficial to improving code performance and
readability, does not depend on code position information output in the log, reduces requirements on the log format, enhances
code readability, improves the integrity of the log by scanning the code and providing suggestions for improving the log, and the like.