Log compression method and device
A compression method and technology of a compression device, which are applied in the fields of instruments, computing, and electrical digital data processing, can solve the problems of low log compression ratio and unsatisfactory compression effect, and achieve the purpose of reducing the proportion, improving the log compression ratio and compression efficiency, and improving the The effect of compression ratio
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0017] The technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0018] In one example, see figure 1 As shown, a log compression method, the method includes the following steps:
[0019] S100 obtains a file containing log records.
[0020] S200 Traversing the file according to the output priority of the log record, replacing the character string of each log record in the file with a unique number, to obtain the replaced log record.
[0021] In the present invention, logging output refers to the developer inserting information in the source code that needs to output certain variables or process states in the system, such as
[0022] ...source code...
[0023] LOG_DEBUG(MOD_AA,macId,"ueNum[%d],throughOutput[%u]MB.state is ideal!\n",ueNUm,totalthp);
[0024] ...source code...
[0025] In step S200, traverse all files containing log records according to the log record output pr...
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