Automatic log injection method and computer equipment

An automatic injection, computer program technology, applied in the field of Internet of Things, can solve problems such as failure to solve, waste of time, etc., to achieve the effect of reducing time cost

Pending Publication Date: 2021-03-19
SHENZHEN TCL DIGITAL TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the logs generated in the software system are usually added in the code by the software developer, but the software developer mainly focuses on the business code during the coding process, and often neglects to add the code to print the log. The log code does cause the software to When a fault occurs, it is impossible to quickly find the place and cause of the error based on the log at the first time. It may be necessary to wait for the fault to be analyzed and resolved when it occurs here. Failure will cause the failure to be resolved for a long time, which is a great waste of time

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
  • Automatic log injection method and computer equipment
  • Automatic log injection method and computer equipment
  • Automatic log injection method and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0049] This embodiment provides a method for automatic log injection, which analyzes the source file. When the analysis result conforms to a certain injection rule, the injection type information corresponding to the analysis result that meets the injection rule is injected into the log information of the source file. In order to automatically in...

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 an automatic log injection method and computer equipment, and the method comprises the steps: obtaining a to-be-processed source file which comprises a source code, and analyzing the source code, so as to determine the type information corresponding to the source code; generating log information corresponding to the source code according to the source code and the type information corresponding to the source code; and injecting log information corresponding to the source code into a row where the source code is located. The source code in the to-be-processed source fileis analyzed to determine the log information needing to be injected into the source code, the log information is injected into the row where the source code is located, participation of developers isnot needed in the whole process, and the log information is automatically injected according to the analysis result of the source code; and the defect of omission when developers manually compile logcodes is overcome, and meanwhile, the time cost of software system development is reduced.

Description

technical field [0001] The invention relates to the technical field of the Internet of Things, in particular to a method and computer equipment for automatic log injection. Background technique [0002] Software developers have written a large number of programs, but the programs always have abnormalities. In the development cycle of a software system, the repair of software defects occupies a considerable part of the time. Logs are a way to track the time when the software is running. Use the log module to record the steps of the program execution in detail, and can quickly find the place and cause of the error when the program fails, and help track and debug the program. [0003] However, the logs generated in the software system are usually added in the code by the software developer, but the software developer mainly focuses on the business code during the coding process, and often neglects to add the code to print the log. The log code does cause the software to When a...

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): G06F8/30G06F8/73G06F8/41
CPCG06F8/31G06F8/73G06F8/427
Inventor 韦启龙
Owner SHENZHEN TCL DIGITAL TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products