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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com