摘要
在网络管理系统中,后台程序是24小时不断运行的。会有大量的数据流,在程序内部传递,或者封装到IP包中在网络中传递。介绍了一种可通用的数据流日志输出的实现方法,可按照一定格式将数据流内容记录成二进制日志文件,并且具有一定可读性,能够设置大小和个数和过滤条件。可广泛用于后台程序,准确记录实时的数据流,作为定位问题的依据。
In network management system, the service programs are running for 24 hours. There is a lot of data stream which is transmited inside the program or in the network by encapsulated in IP packet. This article introduces a common implement of output data stream log. It can record the data stream into binary log files which were readable. It also can set the file' s size, amount and the filter condition. The content can be browsed by develop an interface tool. It can commonly be used in background program, record the data stream correctly as the evidence to localize the problem.
出处
《计算机与数字工程》
2008年第5期90-92,103,共4页
Computer & Digital Engineering
关键词
数据流
输出实现
二进制日志
data stream, implement of output, binary log