Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Log data recording method and apparatus

A log and data technology, which is applied in the computer field, can solve the problems of application program running stuck, large amount of data, occupying processing resources, etc., and achieve the effect of reducing stuck

Active Publication Date: 2017-05-10
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the above processing, when the cached log data reaches a certain amount of data, the multiple pieces of cached log data are compressed as a whole. In this way, the amount of data to be compressed is relatively large, which will suddenly occupy a large amount of processing resources. Causes the application to run stuck

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log data recording method and apparatus
  • Log data recording method and apparatus
  • Log data recording method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0027] The embodiment of the present invention provides a method for recording log data, which can be implemented by a terminal. Wherein, the terminal may be a mobile phone, a tablet computer, a desktop computer, a notebook computer, etc., and system programs and application programs are installed in the terminal. During the process of using the terminal, users will use various applications based on their different needs. This method can be applied in the running process of the application program. The application program will generate log data based on its processing or errors, and then the method provided by the embodiment of the present invention can be used to record the log data and finally obtain a log file. The log file can be...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a log data recording method and apparatus, and belongs to the technical field of computers. The method comprises the steps of obtaining log data generated by an application; taking single piece of log data as a basic compression element, performing streaming compression on the generated log data one by one, and caching the compressed log data; and when the cached log data meets a preset exporting condition, writing the cached log data in a log file, and clearing the cached log data. By adopting the method and the apparatus, the jamming of the application can be reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for recording log data. Background technique [0002] The application can record log data while it is running. Generally, based on the settings of the technician, the application can record a piece of log data when a certain processing is completed or some kind of error occurs. Log data can help technicians analyze the running status and failure of the application, etc. [0003] In the early technology, every time the application generates a piece of log data, it will write the log data into the log file. The process of writing log data to the log file needs to be executed by the system program. First, the application program can send the write request to the system program after generating the log data, and then the system program will write the log data into the log file. During the above processing, every time a piece of log data is recorded, a recipro...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/172G06F16/1744G06F16/1815
Inventor 闫国跃叶润桂
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products