Unlock instant, AI-driven research and patent intelligence for your innovation.

Log file reading method and device

A log file and log technology, applied in the Internet field, can solve the problems of large number and slow log file speed, and achieve the effect of solving slow reading and improving reading efficiency

Inactive Publication Date: 2018-07-20
北京龙之心科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in some cases, the log file contains a large number of records, resulting in slow reading of the log file

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 file reading method and device
  • Log file reading method and device
  • Log file reading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with specific embodiments of the present invention and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0029] figure 1 A method flowchart of a log file reading method provided by an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0030] Step 101. Obtain an end tag corresponding to the last read operation on the log file.

[0031] Step 102, open a cursor, and control the cursor to read log records one by one from the end tag...

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

Embodiments of the invention provide a log file reading method and device. The method comprises the steps of obtaining an end tag corresponding to previous reading operation for a log file; starting avernier, controlling the vernier to be in the log file, and reading log records to a specified cache region one by one from the end tag; and after the vernier reads a first quantity of the log records, stopping the vernier, and taking the last log record corresponding to current reading operation as an end tag corresponding to the current reading operation. According to the technical scheme provided by the log file reading method and device, the defect of low log file reading speed can be overcome and the log file reading efficiency can be improved.

Description

technical field [0001] The present application relates to the technical field of the Internet, in particular to a method and device for reading log files. Background technique [0002] In computer or Internet application scenarios, the monitoring of log files is very important. Log files, also known as Log files, record some execution processes of the operating system or software. Usually, the logs generated by the system or program can be analyzed to realize fault query or monitoring of operation status. [0003] However, in some cases, the log file contains a large number of records, resulting in slow reading of the log file. In this case, a method for reading log files needs to be proposed urgently. Contents of the invention [0004] Various aspects of the embodiments of the present application provide a log file reading method and device, which are used to solve the defect of slow log file reading speed and improve log file reading efficiency. [0005] An embodimen...

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): G06F11/34G06F11/30G06F17/30
CPCG06F11/3065G06F11/3476G06F16/1815
Inventor 李庆彬刘锋张菊元
Owner 北京龙之心科技有限公司