Log processing method and device, electronic device and storage medium

A processing method and log technology, applied in the field of communication, can solve the problems of high debugging time cost, low debugging efficiency, difficult to locate the problem context, etc., to achieve accurate positioning of problems, more real-time display, and improve efficiency

Active Publication Date: 2017-10-20
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the above technical solution, the steps of exporting logs need to be repeated every time, and the cost of debugging time is high; moreover, it is to deduce the problem by checking the log after the event, so it is impossible to find and solve the problem in real time, and it is also impossible to clarify the problem during the problem solving process. Record the user operation steps where the problem occurs, it is not easy to locate the context of the problem, and the debugging efficiency is low

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, electronic device and storage medium
  • Log processing method and device, electronic device and storage medium
  • Log processing method and device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] The log processing method provided in this embodiment is applicable to the test terminal to obtain and send debugging logs during its operation in real time. The method can be executed by a log processing device, which can be implemented by software and / or hardware. The device It can be integrated into any smart device with network communication function, such as a typical user terminal device, such as a mobile phone, a tablet computer or a smart TV. see figure 2 , the method of this implementation specifically includes the following steps:

[0041] S110. Obtain the target log according to the preset log level, the target log includes the log message generation time stamp and the log level identification, so that the terminal to be tested can process and display according to the log message generation time stamp and / or the log level identification The target log.

[0042] Wherein, the preset log level is a preset level used to represent the importance of the log mess...

Embodiment 2

[0054] On the basis of the first embodiment above, this embodiment further optimizes "obtaining the target log according to the preset log level". On this basis, it is also possible to further optimize "determining the log information corresponding to the target log, and sending the target log to the terminal under test according to the log information and preset sending conditions". The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. see image 3 , the log processing method provided in this embodiment includes:

[0055] S210. Generate an initial log according to a preset log level.

[0056] Wherein, the initial log refers to the initial debugging log directly generated by the log generation function of the mobile phone. The initial log includes a log message generation timestamp and a log level identifier. Exemplarily, the preset log levels include level-1 error log, level-2 warning log, level-3 inf...

Embodiment 3

[0073] The log processing method provided in this embodiment is applicable to the terminal to be tested to acquire and display the debugging log of the test terminal during operation in real time. The method can be executed by a log processing device, which can be implemented by software and / or hardware. The device can be integrated into any device with wireless communication function and display function, such as a portable computer, a desktop computer or a server with display function and the like. see Figure 4 , the method of this implementation specifically includes the following steps:

[0074] S310. Receive the target log sent by the test terminal, where the target log includes a log message generation timestamp and a log level identifier.

[0075] S320. Process the target log according to the log message generation time stamp and / or the log level identifier to obtain a target display log.

[0076] Wherein, the target display log refers to the target log that can be use...

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 embodiment of the invention discloses a log processing method and device, an electronic device and a storage medium. The log processing method comprises the steps of obtaining a target log according to a preset log level, wherein the target log comprises a log message generation timestamp and a log level identifier, and enabling a to-be-tested terminal to process and display the target log based on the log message generation timestamp and / or the log level identifier; and transmitting the target log to the to-be-tested terminal based on a preset transmission condition. The log processing method solves the problems of high debugging time cost, inaccurate problem positioning and low debugging efficiency caused by delayed obtaining and displaying of a debugging log. More efficient and more real-time generation, transmission and displaying of the debugging log is realized, so that a research and development person can obtain the required debugging log in time, furthermore the problem can be positioned more rapidly and more accurately, and the problem monitoring and tracking efficiency is improved.

Description

technical field [0001] Embodiments of the present invention relate to communication technologies, and in particular, to a log processing method, device, electronic equipment, and storage medium. Background technique [0002] With the development of technology, more and more smart devices are used in people's life. In order to enrich the application functions of smart devices, developers need to debug and improve them. Usually, the R&D personnel directly connect the smart device (such as a mobile phone) to the debugging device (such as a computer), and then view the debugging log of the mobile phone in real time on the computer side. [0003] However, when the mobile phone is connected to other smart devices such as car machines or smart TVs through USB cables, the mobile phone can no longer be wired to the computer, and the debugger cannot view the debugging logs on the mobile phone in real time. At present, the way to obtain the debugging log of the mobile phone in this c...

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 Applications(China)
IPC IPC(8): G06F11/34G06F11/30G06F11/07
CPCG06F11/0766G06F11/3065G06F11/3466
Inventor 胡伟韬罗序斌
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) 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