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

Processing method and system for avoiding repeated log output

A processing method and log technology, which is applied in the fields of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of duplication of log files, and achieve the effect of improving work efficiency.

Active Publication Date: 2017-05-31
WUHAN DOUYU NETWORK TECH CO LTD
View PDF6 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to provide a processing method and system for avoiding repeated log output in view of the defects that there are a large number of repetitions in log files in the prior art, and repeated processing consumes a large amount of resources

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
  • Processing method and system for avoiding repeated log output
  • Processing method and system for avoiding repeated log output

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0036] Such as figure 1 As shown, the processing method for avoiding repeated log output in the embodiment of the present invention includes the following steps:

[0037] S1. In the log recording system, call the log writing interface function to pass in the current log information, and add a unique parameter identifier for the current log information; the unique parameter identifier in this embodiment is a log error code.

[0038] The log writing interface function is:

[0039] void log(int level, int code, const char *msg, ...)

[0040] Among them, level is the log level, msg is the log inform...

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 processing method and system for avoiding repeated log output. The method comprises the following steps that S1, in a log recording system, a log write interface function is called to transmit current log information, and unique parameter identifiers are added for the current log information; S2, new log files are generated and opened, a log list in the log recording system is obtained, the current log information is compared with the unique parameter identifiers of existing log information in the log list, the current log information is written into the new log files if same unique parameter identifiers do not exist, and it is indicated that the current log information exists in existing log files and the current log information is filtered if the same unique parameter identifier exists; S3, the new log files are closed to complete repeated log information processing. The phenomenon that whole log files are inundated with a large quantity of repeated messages is avoided, and the phenomenon that the log files are too large is also avoided.

Description

technical field [0001] The invention relates to the technical field of system log file processing, in particular to a processing method and system for avoiding repeated log output. Background technique [0002] When the program is released to the user, there may still be some bugs. It is impossible for the user to remember the previous operations or it is difficult to describe the problem. It is usually difficult for the program developer to fix these bugs. The log can help the developer quickly locate Program bugs. But sometimes you will find that the log file is very large, and there are a lot of repeated one or several messages filling the entire log file. For example, if it is not a fatal error that will not cause the program to be closed repeatedly, it may be There are tons of duplicate logs. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a processing method and system for avoiding repeated log output in ...

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): G06F17/30
CPCG06F16/1748G06F16/1815
Inventor 李从章
Owner WUHAN DOUYU NETWORK TECH 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