摘要
针对工业生产中实时监控软件的不足,设计了一种系统操作的日志记录方案。该方案分为操作日志插入、删除和查询三个部分。当对系统进行操作时,记录下当前操作状态,然后生成一条日志记录,并将其存入数据库的日志表中。同时,可以通过调用日志表删除和查询等接口对日志表进行管理。方案实现了对系统操作的实时跟踪,为系统出错恢复和故障诊断提供了重要依据,有利于监控系统维护和改进。此方案已在工业生产中得到应用,并取得了良好的效果。
For defect which real-time monitoring software in industrial production,this paper design a scheme for writing operation log.The scheme consists of writing log,deleting log and reading log.When user does something,the system will record current state,then,a log data is generated and stored in database.In the scheme,interfaces both deleting log and querying log is provided.The scheme implements real-time tracking for system operation,so,it provides important evidence for system recovery and fault diagnosis,and helps to system maintenance and improvement.
出处
《工业控制计算机》
2011年第3期8-9,共2页
Industrial Control Computer
关键词
日志
监控
接口
记录
Log
monitoring
interface
record