Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Log processing method and device

A processing method and log technology, which is applied in the computer field, can solve problems such as occupying a large storage space, no log storage, and affecting the efficiency of troubleshooting problems, and achieve the effects of troubleshooting errors, saving storage resources, and saving storage space

Active Publication Date: 2019-02-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1) Since the logs are not stored in full, it is only possible to troubleshoot problems based on the operation logs of the most recent period, but cannot troubleshoot historical problems for a longer period of time (no logs corresponding to this period of time are stored);
[0005] 2) Logs are only stored for a period of time, making it difficult to troubleshoot problems that occur frequently
[0006] 3) Even if only the log of the program running in the most recent period is stored, it will still occupy a large amount of storage space. At the same time, processing a large number of logs also affects the efficiency of troubleshooting

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
  • Log processing method and device
  • Log processing method and device
  • Log processing method and device

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0108] Example 1) The preset condition is that the program exits abnormally

[0109] by image 3 For example, when a program in the cloud platform 30 exits abnormally, based on the log data of the debugging level (first level) and the log data of the important level (second level), a corresponding program is formed from the start of operation to meeting the predetermined The log file during the condition setting period, here, the importance level is any level except the debug level in the aforementioned levels, such as error level, information level, warning level, etc.

[0110] In one embodiment, when the program starts to run, once the log data of the important level output by the program is obtained, the log data of the important level is written into the log file. Moreover, when the program exits abnormally (that is, when the running state of the program meets the preset conditions for abnormal exit), the log data of the debug level is also written into the log file, so t...

example 2

[0114] Example 2) The preset condition is that the program ends normally

[0115] by image 3 For example, when the program in the cloud platform 40 exits abnormally, based on the log data of the importance level (second level), a log file is formed corresponding to the period from the start of the program to satisfying the preset condition. Here, the importance level It is any one of the aforementioned levels except the debugging level, such as error level, information level, warning level, etc.

[0116] In one embodiment, when the program starts to run, once the log data of the important level output by the program is obtained, the log data of the important level is written into the log file until the program ends, when the program does not exit abnormally (that is, When the running state of the program satisfies the preset conditions for the end of normal operation), since the program does not exit abnormally, there is no need to form a log file based on the log data of th...

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 discloses a log processing method and device. The log processing method comprises the following steps: acquiring log data output by a program during operation; recognizing different levels of the output log data; detecting the program operating status and determining preset conditions met by the program operating status; forming log files corresponding to a period, from operation start to the moment when the preset conditions are met, of the program on the basis of at least one of first-level log data and second-level log data corresponding to the preset conditions; detecting errors produced by the program on the basis of at least one log file in the period. With implementation of the log processing method, problems produced during program operation can be troubleshot comprehensively and efficiently, and the log storage resources are saved.

Description

technical field [0001] The invention relates to computer program technology in the field of computers, in particular to a log processing method and device. Background technique [0002] During the development, testing, and actual operation of a program (or system), it is very important to record a log of program operation. The log can be used to monitor the running status of the program and troubleshoot problems when the program fails. [0003] The log stores various information during the running of the program. For large-scale applications with complex functions, the running of the recording program will generate a log with a large amount of data, which requires considerable storage space to store the log and store a large amount of data. On the one hand, logs will occupy a large amount of storage resources, and due to the need to save storage resources, only the logs of the most recent period may be stored. This leads to the following problems: [0004] 1) Since the log...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/21
CPCG06F16/217
Inventor 李德铠
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products