A log collection method, device, equipment and computer-readable storage medium
A collection device and computer program technology, applied in the storage field, can solve problems such as occupying application program memory, affecting the running speed of application programs, and affecting the writing efficiency of logs written into log files, so as to reduce the probability of write blocking and improve log files. The effect of collection efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] see figure 1 , figure 1 It is an implementation flowchart of the log collection method in the embodiment of the present invention, and the method may include the following steps:
[0042] S101: When it is detected that the log is generated, read the thread execution priorities of the log printing thread and the log collection thread from the asynchronous execution thread list.
[0043] The thread execution priorities of the log printing thread and the log collection thread are pre-stored in the asynchronous execution thread list.
[0044] An asynchronous execution thread list in which thread execution priorities of the log printing thread and the log collection thread are stored may be created in advance. Whether there is log generation can be detected in real time or according to a preset time interval. When the existence of log generation is detected, the thread execution priority of the log printing thread and the log collection thread is read from the asynchronous...
Embodiment 2
[0052] see figure 2 , figure 2 It is another implementation flowchart of the log collection method in the embodiment of the present invention, and the method may include the following steps:
[0053] S201: When it is detected that there is log generation, read the thread execution priorities of the log printing thread and the log collection thread from the asynchronous execution thread list.
[0054] The thread execution priorities of the log printing thread and the log collection thread are pre-stored in the asynchronous execution thread list.
[0055] S202: When it is determined that the thread execution priority of the log printing thread is higher than the thread execution priority of the log collection thread, firstly start the log printing thread to call the log framework interface obtained by modifying the source package of the log framework to print the log, and print the log in the After detecting that the log printing is completed, start the log collection thread...
Embodiment 3
[0067] see image 3 , image 3 It is another implementation flowchart of the log collection method in the embodiment of the present invention, and the method may include the following steps:
[0068] S301: When it is detected that there is log generation, read the thread execution priorities of the log printing thread and the log collection thread from the asynchronous execution thread list.
[0069] The thread execution priorities of the log printing thread and the log collection thread are pre-stored in the asynchronous execution thread list.
[0070] S302: When it is determined that the thread execution priority of the log printing thread is higher than the thread execution priority of the log collection thread, first start the log printing thread to call the log framework interface obtained by encapsulating the log framework to print the log, and when the log is detected After the printing is completed, start the log collection thread to call the log framework interface ...
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