The invention discloses an embedded log
system design method and
system suitable for secondary equipment of a power
system. The method comprises the following steps: intercepting communication data of secondary equipment and
peripheral equipment of the power system, storing the communication data in a network message file, setting an annular buffer between a
peripheral interface and an application process to receive external driving data, and realizing inter-process message communication by adopting a
shared memory; when the system detects an exception or an alarm, backing up the intercepted network message file, backing up log files in the annular buffer and task process running process and message data in a
database and a
shared memory, analyzing a
core dump file, and compressing and backing up the
core dump file; monitoring the
utilization rate of system resources, and when the
utilization rate exceeds a set threshold value, performing exception management on each process, and compressing collected log files; and analyzing and displaying the log file by using a log analysis tool. According to the scheme of the invention, the whole-process
log management of the abnormity of the secondary equipment is realized, and the problem
backtracking and positioning are facilitated.