Log collection method, device and equipment and computer readable storage medium
A collection device and computer program technology, applied in the field of storage, can solve the problems of occupying application program memory, affecting the running speed of the application program, log write blocking, etc., so as to reduce the probability of write blocking, improve log collection efficiency, and improve operation. effect of speed
- 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 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.
[0043] Wherein, 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 storing thread execution priorities of the log printing thread and the log collection thread may be created in advance. Whether there is log generation can be detected in real time or according to a preset time interval. When log generation is detected, the thread execution priorities of the log printing thread and the log collection thread are read from the asynchronous execution thr...
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] Wherein, 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, first start the log printing thread to call the log framework interface obtained by modifying the source code package of the log framework to print the log, and After detecting that the log printing is complete, start the log collection thread to call t...
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] Wherein, 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 frame interface obtained by encapsulating the log frame 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