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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

