Log processing method based on Linux message queue
A technology of message queue and processing method, which is applied in the field of log processing based on Linux message queue, can solve problems such as complex log information processing, and achieve the effects of diversification and refinement of user needs, strong practicability, and easy promotion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0029] A log processing method based on a Linux message queue of the present invention will be described in detail below.
[0030] The invention provides a log processing method based on a Linux message queue, which can write log information generated by multiple processes or threads into the same log file, and supports recording to the same log file in the case of mixing multiple processes and threads log, the specific processing process is:
[0031] 1) In the Linux operating system, the system accepts the path of the log file as a parameter.
[0032] 2) If the path is a relative path, convert it to an absolute path.
[0033] 3) Create an unnamed pipe for communication between the log service process to be created and the existing process.
[0034] 4) Create a new process so that there are two processes, parent and child.
[0035] 5) The child process closes the read end descriptor of the unnamed pipe.
[0036] 6) The parent process closes the write descriptor of the unna...
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