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

A log processing method, device, electronic device and storage medium

A log and log file 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., and achieve the effect of improving efficiency, accurately locating problems, and more real-time display

Active Publication Date: 2021-02-09
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 0 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
  • A log processing method, device, electronic device and storage medium
  • A log processing method, device, electronic device and storage medium
  • A log processing method, 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, device, electronic equipment and storage medium. The method includes: obtaining a target log according to a preset log level, the target log including a log message generation time stamp and a log level identification, so that the terminal to be tested can be processed according to the log message generation time stamp and / or the log level identification and displaying the target log; sending the target log to the terminal to be tested according to preset sending conditions. It solves the problems of high debugging time cost, inaccurate problem location and low debugging efficiency caused by untimely acquisition and display of debugging logs. It achieves more effective and real-time generation, sending and display of debugging logs, so that R&D personnel can obtain the required debugging logs in time, and further locate problems more quickly and accurately, improving the efficiency of problem monitoring and tracking.

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products