Log recording method and device

A log and log tail technology, applied in the storage field, can solve problems such as difficulty in distinguishing different logs and indistinguishable

Inactive Publication Date: 2017-10-24
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when using the existing log recording method, when it is necessary to access the logs recorded in the memory, it will be difficult to distinguish which is the latest log and which is the oldest log, and it is difficult to distinguish between different logs

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0038] In the first specific implementation manner, the log recording method provided by the present invention may include the following steps:

[0039] Step S11: When there is a log that needs to be recorded in the memory, judge whether the memory is blank memory, if yes, perform step S12: determine each space in the memory whose size is a preset value as a unit space, and determine the last unit of the memory The next unit space of the space is the first unit space of the memory, and the first unit space of the memory is used as the log head, and the second unit space of the memory is used as the log tail, and then enter step S13; if not, enter step S13.

[0040] In practical applications, when there is a log that needs to be recorded in the memory, it is first necessary to judge whether there is a log head and a log tail in the memory, that is, to judge whether the memory is a blank memory, if the memory is a blank memory, the memory needs to be initialized, If the memory i...

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 recording method and device, wherein the method comprises: S1, when there is a log to be recorded to a storage, judging whether the storage is a blank storage; if yes, determining each space, having the preset size, in the storage as a unit space, determining a next unit space to the last unit space of the storage as a first unit space of the storage, using the first unit space of the storage as a log head, using a second unit space of the storage as a log tail, and entering step S2; if not, entering the step S2; S2, judging whether the next unit space to the log tail is a log head; if not, entering step S3; S3, covering a next unit space to the space of the log tail via the log tail of the storage, and writing the log into a previous unit space to the current space of the log tail. The log recording method disclosed herein enables the technical problem of how to improve time efficiency for distinguishing recorded times of different logs.

Description

technical field [0001] The invention relates to the field of storage, in particular to a method and device for recording logs. Background technique [0002] With the development of electronic technology, more and more storage technologies are used in devices. In the process of applying storage technology, a device sometimes needs to record its own log system. [0003] An existing method for recording logs is that the important events that occur in the device are recorded in EEPROM (Electrically Erasable Programmable Read-Only Memory) for preservation. log. However, the space of EEPROM is limited. When the log is full, the log needs to be cyclically covered, that is, the latest log covers the oldest log. [0004] However, when using the existing log recording method, when it is necessary to access the logs recorded in the memory, it is difficult to distinguish which is the latest log and which is the oldest log, and it is difficult to distinguish different logs. [0005] ...

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/13G06F16/1815
Inventor 王献飞
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products