Unlock instant, AI-driven research and patent intelligence for your innovation.

Embedded log management system and method

A management system, embedded technology, applied in the direction of electrical digital data processing, input/output to record carrier, data processing input/output process, etc. problems, to achieve the effect of reducing log output, reducing storage pressure, and easy to locate problems

Pending Publication Date: 2021-02-02
武汉迈威通信股份有限公司
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The conventional operation method is to save a log file in the memory, write it in a loop, and write the file content to the flash regularly. This method is more suitable for a system with a relatively large flash; for embedded devices using a single-chip microcomputer solution, such as Serial servers, etc., usually have limited memory and flash data; cannot store a large number of running logs
[0004] In addition, the flash also has a limit on the number of erasing times. If the log is frequently written to the flash, it is easy to cause bad blocks in the flash, and the flash usually needs to save important information such as device configuration, which will cause the entire system to fail. Therefore, The method of loop writing is not suitable

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Embedded log management system and method
  • Embedded log management system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046]Embodiment 1 provided by the present invention is an embodiment of an embedded log management system provided by the present invention. The embodiment includes: a log level setting module, a user instruction receiving and analyzing module, and a log output module.

[0047]The log level setting module stores the levels corresponding to the set logs of various categories;

[0048]The levels corresponding to various types of logs can be manually set according to the severity of the logs and the frequency of generation. Different levels can be described in English or numbers, for example: debug, info, warning, error, fatal; corresponding numbers 0, 1, 2 respectively , 3 and 4; but not limited to this.

[0049]The user instruction receiving parsing module receives the user's instruction, and parses out the allowable output log level in the instruction;

[0050]The command can be a control command input by the user through the serial port, network or USB port. The lowest log level that the prog...

Embodiment 2

[0068]Embodiment 2 provided by the present invention is an embodiment of an embedded log management method provided by the present invention, such asfigure 2Shown is a flowchart of an embodiment of an embedded log management method provided by the present invention.figure 2It can be seen that this embodiment includes:

[0069]Set the corresponding levels of various types of logs;

[0070]Receive a user's instruction, and parse out the allowable output log level in the instruction;

[0071]Further, the instruction also includes whether to enable the log instruction.

[0072]After analyzing the instruction, when it is determined that the log instruction is turned on, the log management system is started to perform log management.

[0073]After parsing the instruction, when it is determined not to open the log instruction, it is judged whether to close the log instruction, if yes, stop the log operation; if not, other business modules perform log management.

[0074]Specifically, logs that are very seri...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an embedded log management system and method. The system comprises a log level setting module, a user instruction receiving and analyzing module and a log output module; the log level setting module stores levels corresponding to various types of set logs; the user instruction receiving and analyzing module is used for receiving an instruction of a user and analyzing an allowable output log level in the instruction; the log output module determines the level of the to-be-processed log through the log level setting module and determines whether the to-be-processed log is output or not according to the user instruction receiving and analyzing module; by setting the levels of various logs and outputting the logs of a certain level in real time, the storage pressure ofthe system is reduced; the flash does not need to be frequently erased and written in the log generation and storage process, so that the service life of the flash is favorably prolonged; and the user can dynamically specify the lowest level allowing program output through the instruction, so that log output is reduced when the program runs normally, and the performance is prevented from being influenced.

Description

Technical field[0001]The invention relates to the field of embedded systems, in particular to an embedded log management system and method.Background technique[0002]During the operation of the equipment, some situations that have not been considered in the program design may be encountered, resulting in abnormal operation of the equipment. The running log of the software program at this time can facilitate the developer to locate the problem.[0003]The conventional method of operation is to save a log file in the memory, write it cyclically, and periodically write the content of the file to the flash. This method is more suitable for systems with a relatively large flash; for embedded devices that use a single-chip solution, such as Serial servers, etc., usually have limited memory and flash data; they cannot store a large amount of running logs.[0004]In addition, flash also has a limit on the number of times of erasing and writing. If the log is frequently written to the flash, it i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/34G06F3/06
CPCG06F11/3476G06F3/0608G06F3/0643G06F3/0679
Inventor 张朋飞周厚明
Owner 武汉迈威通信股份有限公司